/**
 * Museum Auth Form Styles
 * Login and Registration Forms
 */

/* Main Container */

/* Form Container */

/* Form Header */
.museum-auth-form-header {
  margin-bottom: 56px;
}

.museum-auth-form-header div {
  margin: 0;
  font-family: "Swizzy TRIAL", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0%;
  text-transform: uppercase;
  color: #000000;
}

/* Close Button (if needed) */
.museum-auth-form-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  display: none; /* Hidden by default for inline display */
}

.museum-auth-form-close svg {
  width: 24px;
  height: 24px;
}

/* Form Wrapper - for toggling between forms */
.museum-auth-forms-wrapper {
  position: relative;
}

/* Individual Forms */
.museum-auth-single-form {
  display: none;
}

.museum-auth-single-form.active {
  display: block;
}

/* Form Fields */
.museum-auth-form-field {
  margin-bottom: 24px;
}

.museum-auth-form-field label {
  display: block;
  font-family: "Swizzy TRIAL", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0%;
  color: #000000;
  margin-bottom: 10px;
}

.museum-auth-form-field input[type="text"],
.museum-auth-form-field input[type="email"],
.museum-auth-form-field input[type="password"] {
  width: 100%;
  padding: 12px;
  font-family: "Swizzy TRIAL", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0%;
  border: none;
  background: #eeeeee;
  color: #000000;
  box-sizing: border-box;
}

.museum-auth-form-field input[type="text"]::placeholder,
.museum-auth-form-field input[type="email"]::placeholder,
.museum-auth-form-field input[type="password"]::placeholder {
  color: #cccccc;
}

.museum-auth-form-field input[type="text"]:focus,
.museum-auth-form-field input[type="email"]:focus,
.museum-auth-form-field input[type="password"]:focus {
  outline: 2px solid #000000;
  outline-offset: -2px;
}

/* Password Field with Toggle */
.museum-auth-password-wrapper {
  position: relative;
}

.museum-auth-password-toggle {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.museum-auth-password-toggle svg {
  width: 24px;
  height: 24px;
  color: #000000;
}

/* Remember Me and Forgot Password Row */
.museum-auth-remember-forgot-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

/* Checkbox Field (Remember Me) */
.museum-auth-checkbox-field {
  display: flex;
  align-items: center;
  margin: 0;
}

.museum-auth-checkbox-field input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  cursor: pointer;
}

.museum-auth-checkbox-field label {
  font-size: 14px;
  font-weight: 400;
  color: #000000;
  cursor: pointer;
  margin: 0;
}

/* Forgot Password Link */
.museum-auth-forgot-password {
  text-align: right;
  margin: 0;
}

.museum-auth-forgot-password a {
  color: #000000;
  text-decoration: none;
  font-size: 14px;
}

.museum-auth-forgot-password a:hover {
  text-decoration: underline;
}

/* Submit Button */
.museum-auth-submit-btn {
  width: 100%;
  padding: 18px 20px;
  background: #000000;
  color: #ffffff;
  border: none;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.museum-auth-submit-btn:hover {
  opacity: 0.8;
}

.museum-auth-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Form Separator */
.museum-auth-form-separator {
  margin: 40px 0;
  text-align: center;
  position: relative;
  width: 100%;
  height: 1px;
  background: #cccccc;
}

/* Form Toggle Section */
.museum-auth-form-toggle {
  margin-top: 40px;
  text-align: center;
}

.museum-auth-form-toggle p {
  font-size: 16px;
  color: #000000;
  margin-bottom: 20px;
}

.museum-auth-toggle-btn {
  width: 100%;
  padding: 10px 4px;
  background: transparent;
  color: #000000;
  border: 1px solid #000000;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.museum-auth-toggle-btn:hover {
  background: #000000;
  color: #ffffff;
}

/* Error Messages */
.museum-auth-error {
  color: #d32f2f;
  font-size: 14px;
  margin-top: 5px;
  display: none;
}

.museum-auth-error.show {
  display: block;
}

.museum-auth-form-field.error input {
  border: 2px solid #d32f2f;
  outline: none;
}

/* General Messages */
.museum-auth-message {
  padding: 15px 20px;
  margin-bottom: 20px;
  border-radius: 0;
  font-size: 14px;
}

.museum-auth-message.error {
  background: #ffebee;
  color: #c62828;
  border: 1px solid #ef9a9a;
}

.museum-auth-message.success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}

.museum-auth-message.info {
  background: #e3f2fd;
  color: #1565c0;
  border: 1px solid #90caf9;
}

/* Loading State */
.museum-auth-form.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Success Overlay */
.museum-auth-success-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.museum-auth-success-overlay.show {
  display: flex;
}

.museum-auth-success-content {
  background: #ffffff;
  padding: 60px 80px;
  text-align: center;
  position: relative;
  max-width: 400px;
  width: 90%;
}

.museum-auth-success-icon {
  margin-bottom: 30px;
}

.museum-auth-success-icon svg {
  width: 60px;
  height: 60px;
}

.museum-auth-success-text {
  font-family: "Swizzy TRIAL", sans-serif;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.1;
  text-transform: uppercase;
  color: #000000;
  margin: 0;
}

.museum-auth-success-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  display: none;
}

.museum-auth-success-close svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 480px) {
  .museum-auth-success-content {
    padding: 40px 30px;
  }

  .museum-auth-success-icon svg {
    width: 50px;
    height: 50px;
  }

  .museum-auth-success-text {
    font-size: 24px;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .museum-auth-form-header div {
    font-size: 28px;
  }

  .museum-auth-form-field input[type="text"],
  .museum-auth-form-field input[type="email"],
  .museum-auth-form-field input[type="password"] {
    padding: 12px 15px;
    /* Font size stays the same (14px) on mobile */
  }

  .museum-auth-submit-btn,
  .museum-auth-toggle-btn {
    padding: 15px 20px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .museum-auth-form-header {
    margin-bottom: 30px;
  }
  .museum-auth-form-header div {
    font-size: 32px;
  }

  .museum-auth-form-field {
    margin-bottom: 20px;
  }
}
