/**
 * iCarePlatform V2 - Login Page Styles
 * Page-specific styles for login.html
 */

.login-page {
  display: flex;
  min-height: 100vh;
}

/* Left Side - Branding */
.login-left {
  flex: 1;
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #3b82f6 100%);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: white;
  position: relative;
  overflow: hidden;
}

.login-left::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 60%);
  pointer-events: none;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.login-brand-icon {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.login-brand-icon i { 
  width: 28px; 
  height: 28px; 
  color: white; 
}

.login-brand span { 
  font-size: 24px; 
  font-weight: 700; 
  letter-spacing: -0.5px; 
}

.login-tagline {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin-top: 20px;
}

.login-tagline h1 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.login-tagline p {
  font-size: 15px;
  opacity: 0.9;
  line-height: 1.6;
}

.login-features {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.login-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  backdrop-filter: blur(10px);
}

.login-feature-icon {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.login-feature-icon i { 
  width: 18px; 
  height: 18px; 
  color: white; 
}

.login-feature-text h4 { 
  font-size: 16px; 
  font-weight: 600; 
  margin-bottom: 2px; 
}

.login-feature-text p { 
  font-size: 13px; 
  opacity: 0.8; 
}

.login-footer-info {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.login-footer-info span { 
  font-size: 13px; 
  opacity: 0.8; 
}

.login-trust-badges { 
  display: flex; 
  gap: 12px; 
}

.trust-badge {
  padding: 8px 12px;
  background: rgba(255,255,255,0.1);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.trust-badge i { 
  width: 14px; 
  height: 14px; 
}

/* Right Side - Form */
.login-right {
  flex: 1;
  background: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 64px;
  max-width: 600px;
}

.login-form-container { 
  width: 100%; 
  max-width: 400px; 
  margin: 0 auto; 
}

.login-form-header { 
  margin-bottom: 32px; 
}

.login-form-header h2 { 
  font-size: 26px; 
  font-weight: 700; 
  color: var(--text-primary); 
  margin-bottom: 6px; 
}

.login-form-header p { 
  font-size: 14px; 
  color: var(--text-secondary); 
}

.login-form-header .org-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: #dbeafe;
  border-radius: 6px;
  font-size: 12px;
  color: #1e40af;
  margin-bottom: 16px;
}

.login-form-header .org-badge i { 
  width: 14px; 
  height: 14px; 
}

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

.form-label { 
  display: block; 
  font-weight: 500; 
  font-size: 14px; 
  margin-bottom: 8px; 
  color: var(--text-primary); 
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 14px;
  font-family: var(--font-base);
  transition: all var(--transition-fast);
  background: white;
}

.form-input:focus { 
  outline: none; 
  border-color: var(--color-primary); 
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); 
}

.password-wrapper { 
  position: relative; 
}

.password-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 4px;
}

.password-toggle i { 
  width: 18px; 
  height: 18px; 
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.remember-me { 
  display: flex; 
  align-items: center; 
  gap: 8px; 
  cursor: pointer; 
}

.remember-me input { 
  width: 16px; 
  height: 16px; 
  accent-color: var(--color-primary); 
  cursor: pointer; 
}

.remember-me label { 
  font-size: 14px; 
  color: var(--text-secondary); 
  cursor: pointer; 
}

.forgot-password { 
  font-size: 14px; 
  color: var(--color-primary); 
  text-decoration: none; 
  font-weight: 500; 
}

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

.btn-primary {
  background: var(--color-primary);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-base);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.btn-primary:hover { 
  background: var(--color-primary-hover); 
}

.btn-primary:disabled { 
  opacity: 0.6; 
  cursor: not-allowed; 
}

.btn-primary i { 
  width: 18px; 
  height: 18px; 
}

.login-footer {
  text-align: center;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.login-footer p { 
  font-size: 13px; 
  color: var(--text-secondary); 
}

.login-footer a { 
  color: var(--color-primary); 
  text-decoration: none; 
  font-weight: 500; 
}

.login-footer a:hover { 
  text-decoration: underline; 
}

.error-message {
  background: var(--color-danger-light);
  border: 1px solid #fecaca;
  color: var(--color-danger);
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 20px;
  display: none;
  align-items: flex-start;
  gap: 10px;
}

.error-message.show { 
  display: flex; 
}

.error-message i { 
  width: 18px; 
  height: 18px; 
  flex-shrink: 0; 
  margin-top: 1px; 
}

.login-right-footer {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.security-badges {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 12px;
}

.security-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-secondary);
}

.security-badge i { 
  width: 14px; 
  height: 14px; 
  color: var(--color-success); 
}

.copyright { 
  text-align: center; 
  font-size: 11px; 
  color: var(--text-light); 
}

/* Animations */
@keyframes spin { 
  from { transform: rotate(0deg); } 
  to { transform: rotate(360deg); } 
}

.hidden {
  display: none !important;
}

.success-message {
  background: #dcfce7;
  border: 1px solid #86efac;
  color: #166534;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.success-message i { 
  width: 18px; 
  height: 18px; 
  flex-shrink: 0; 
  margin-top: 1px; 
}

.back-to-login {
  font-size: 14px;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
}

.back-to-login:hover { 
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 1024px) {
  .login-left { 
    display: none; 
  }
  .login-right { 
    width: 100%; 
    padding: 32px; 
  }
}
