/* Password Pages Styles - Shared between Set Password and Reset Password */

/* Container Styles */
.password-setup-container,
.reset-password-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.success-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.error-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Card Styles */
.password-setup-card,
.reset-password-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  max-width: 400px;
  width: 90%;
  padding: 40px;
  text-align: center;
}

.success-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  max-width: 400px;
  width: 90%;
  padding: 40px;
  text-align: center;
}

.error-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  max-width: 400px;
  width: 90%;
  padding: 40px;
  text-align: center;
}

/* Header Styles */
.password-setup-header,
.reset-password-header {
  margin-bottom: 30px;
}

.password-setup-header h1,
.reset-password-header h1 {
  color: #333;
  margin: 0 0 10px 0;
  font-size: 28px;
}

.password-setup-header p,
.reset-password-header p {
  color: #666;
  margin: 0;
  font-size: 16px;
}

/* Form Styles */
.password-form,
.reset-password-form {
  text-align: left;
}

.password-form .form-group,
.reset-password-form .form-group {
  margin-bottom: 20px;
}

.password-form .form-group:nth-child(2),
.reset-password-form .form-group:nth-child(2) {
  margin-bottom: 25px;
}

.password-form label,
.reset-password-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
  font-size: 16px;
}

.password-form input[type="password"],
.reset-password-form input[type="password"] {
  width: 100%;
  padding: 14px;
  border: 2px solid #e0e6ed;
  border-radius: 6px;
  font-size: 16px;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.password-form input[type="password"]:focus,
.reset-password-form input[type="password"]:focus {
  outline: none;
  border-color: #667eea;
}

/* Error Message */
.password-form .error-message,
.reset-password-form .error-message {
  color: #dc3545;
  margin-bottom: 20px;
  font-size: 14px;
  display: none;
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 6px;
  padding: 10px;
}

.password-form .error-message.visible,
.reset-password-form .error-message.visible {
  display: block;
}

/* Submit Button */
.password-form .submit-btn,
.reset-password-form .submit-btn {
  width: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s ease;
  margin-bottom: 20px;
}

.password-form .submit-btn:hover,
.reset-password-form .submit-btn:hover {
  transform: scale(1.02);
}

/* Password Requirements */
.password-requirements {
  font-size: 13px;
  color: #666;
  background: #f8f9fa;
  border-radius: 6px;
  padding: 12px;
  text-align: left;
}

.password-requirements ul {
  margin: 8px 0 0 0;
  padding-left: 20px;
}

/* Back to Login Section (Reset Password Only) */
.back-to-login {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.back-to-login a {
  color: #667eea;
  text-decoration: none;
  font-size: 14px;
}

/* Success Page Styles */
.success-emoji {
  font-size: 60px;
  margin-bottom: 20px;
}

.success-title {
  color: #28a745;
  margin: 0 0 15px 0;
  font-size: 24px;
}

.success-message {
  color: #333;
  margin: 0 0 25px 0;
  font-size: 16px;
}

.success-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.success-btn:hover {
  transform: scale(1.05);
}

.success-footer {
  color: #666;
  margin: 25px 0 0 0;
  font-size: 14px;
}

/* Error Page Styles */
.error-emoji {
  font-size: 60px;
  margin-bottom: 20px;
}

.error-title {
  color: #dc3545;
  margin: 0 0 15px 0;
  font-size: 24px;
}

.error-message-text {
  color: #333;
  margin: 0 0 25px 0;
  font-size: 16px;
}

.error-btn {
  background: #6c757d;
  color: white;
  border: none;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
}

/* Dynamic State Classes */
.input-focused {
  border-color: #667eea !important;
}

.input-blurred {
  border-color: #e0e6ed !important;
}

.message-visible {
  display: block !important;
}

.message-hidden {
  display: none !important;
}