/* ============================================
   AJTC Driver App - Refined Login Styling
   Subtle, professional appearance
   ============================================ */

/* Main container background - subtle gradient */
.login-page-body {
  background: linear-gradient(to bottom, #f0f7f4, #ffffff);
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  margin: 0;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Optional: Subtle background pattern */
.login-page-body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.02;
  background-image: 
    radial-gradient(circle at 1px 1px, #048848 1px, transparent 0);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: -1;
}

/* Login container - elevated card design */
.login-card-refined {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  padding: 40px 32px;
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
}

/* Logo section */
.logo-section {
  text-align: center;
  margin-bottom: 32px;
}

.logo-section .logo-image {
  width: 100px;
  height: 100px;
  margin-bottom: 16px;
  object-fit: contain;
}

.logo-section .app-title {
  color: #048848;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
  margin-top: 0;
}

.logo-section .app-tagline {
  color: #6b7280;
  font-size: 14px;
  font-weight: 400;
  margin: 0;
}

/* Form elements */
.login-card-refined .form-group {
  margin-bottom: 20px;
}

.login-card-refined label {
  display: block;
  color: #374151;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}

.login-card-refined input[type="email"],
.login-card-refined input[type="password"],
.login-card-refined input[type="text"] {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  color: #1f2937;
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.login-card-refined input[type="email"]:focus,
.login-card-refined input[type="password"]:focus,
.login-card-refined input[type="text"]:focus {
  outline: none;
  border-color: #048848;
  box-shadow: 0 0 0 3px rgba(4, 136, 72, 0.1);
}

.login-card-refined input::placeholder {
  color: #9ca3af;
}

/* Password visibility toggle */
.password-input-wrapper {
  position: relative;
}

.password-input-wrapper input {
  padding-right: 44px;
}

.login-card-refined .password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #6b7280;
  background: none;
  border: none;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card-refined .password-toggle:hover {
  color: #374151;
}

/* Primary Sign In button */
.btn-signin {
  width: 100%;
  padding: 14px;
  background: #048848;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-signin:hover {
  background: #037038;
  box-shadow: 0 2px 8px rgba(4, 136, 72, 0.2);
}

.btn-signin:active {
  transform: translateY(1px);
}

.btn-signin:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

/* Terms and conditions text */
.terms-text {
  font-size: 12px;
  color: #6b7280;
  text-align: center;
  line-height: 1.5;
  margin-bottom: 16px;
}

.terms-text a {
  color: #048848;
  text-decoration: none;
  font-weight: 500;
}

.terms-text a:hover {
  text-decoration: underline;
}

/* Forgot password link */
.forgot-password-link {
  text-align: center;
  margin-bottom: 24px;
}

.forgot-password-link a {
  color: #048848;
  font-size: 14px;
  text-decoration: none;
  font-weight: 500;
}

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

/* Divider */
.divider {
  display: flex;
  align-items: center;
  margin: 24px 0;
  color: #9ca3af;
  font-size: 13px;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

.divider::before {
  margin-right: 12px;
}

.divider::after {
  margin-left: 12px;
}

/* Google Sign In button */
.btn-google {
  width: 100%;
  padding: 12px;
  background: #f9fafb;
  color: #374151;
  font-size: 15px;
  font-weight: 500;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
}

.btn-google:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

.btn-google svg {
  width: 20px;
  height: 20px;
}

.google-note {
  text-align: center;
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 0;
}

/* New user section */
.new-user-section {
  text-align: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
}

.new-user-text {
  color: #6b7280;
  font-size: 14px;
  margin-bottom: 12px;
}

.signup-link {
  display: inline-block;
  margin-bottom: 16px;
}

.signup-link a {
  color: #048848;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.signup-link a:hover {
  text-decoration: underline;
}

/* Install App button */
.btn-install {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: transparent;
  color: #048848;
  font-size: 14px;
  font-weight: 500;
  border: 1.5px solid #048848;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 16px;
}

.btn-install:hover {
  background: #f0f7f4;
}

.btn-install svg {
  width: 18px;
  height: 18px;
}

/* Footer */
.login-footer-refined {
  text-align: center;
  margin-top: 24px;
  padding-top: 16px;
}

.company-name {
  color: #6b7280;
  font-size: 13px;
  margin-bottom: 4px;
}

.company-location {
  color: #9ca3af;
  font-size: 12px;
  margin-bottom: 8px;
}

.company-phone {
  color: #048848;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.company-phone:hover {
  text-decoration: underline;
}

/* Compliance badges */
.compliance-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
  flex-wrap: wrap;
}

.compliance-badges .badge {
  font-size: 11px;
  font-weight: 500;
}

.compliance-badges .badge.secure {
  color: #22c55e;
}

.compliance-badges .badge.iso {
  color: #3b82f6;
}

.compliance-badges .badge.hipaa {
  color: #8b5cf6;
}

.compliance-badges .separator {
  color: #d1d5db;
  font-size: 10px;
}

/* Error message */
.error-message {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .login-card-refined {
    padding: 32px 24px;
    border-radius: 0;
    box-shadow: none;
    max-width: 100%;
  }
  
  .login-page-body {
    background: #ffffff;
    padding: 0;
  }
  
  .login-page-body::before {
    display: none;
  }
}
