/* ===========================================
   DSS - Login Page Stylesheet
   Extracted from login.php
   =========================================== */

:root {
  --accent: #667eea;
  --accent-end: #764ba2;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  min-height: 100vh;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: #f8f9fb;
}
.login-wrapper {
  display: flex;
  min-height: 100vh;
}

/* Left panel - Form */
.login-form-panel {
  flex: 0 0 480px;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem;
  background: #fff;
  position: relative;
  z-index: 2;
}
.login-form-inner {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}

/* Right panel - Illustration */
.login-brand-panel {
  flex: 1;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-end) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  position: relative;
  overflow: hidden;
  color: white;
}
.login-brand-panel::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -20%;
  width: 70%;
  height: 70%;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}
.login-brand-panel::after {
  content: '';
  position: absolute;
  bottom: -15%;
  left: -15%;
  width: 50%;
  height: 50%;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
}
.brand-content {
  position: relative;
  z-index: 1;
  text-align: center;
}
.brand-icon-large {
  width: 120px;
  height: 120px;
  background: rgba(255,255,255,0.15);
  border-radius: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  backdrop-filter: blur(10px);
}
.brand-icon-large i {
  font-size: 3.5rem;
  color: white;
}
.brand-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.brand-subtitle {
  font-size: 1.1rem;
  opacity: 0.85;
  max-width: 340px;
  line-height: 1.6;
}
.brand-features {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}
.brand-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  opacity: 0.9;
  font-size: 0.95rem;
}
.brand-feature-icon {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.15);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Form styles */
.login-logo {
  width: 56px;
  height: 56px;
  border-radius: 0.75rem;
  object-fit: contain;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.login-logo-placeholder {
  width: 56px;
  height: 56px;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-end) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-logo-placeholder i {
  font-size: 1.75rem;
  color: white;
}
.login-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 0.25rem;
}
.login-subtext {
  color: #6c757d;
  font-size: 0.95rem;
  margin-bottom: 2rem;
}
.form-label-custom {
  font-weight: 500;
  font-size: 0.875rem;
  color: #495057;
  margin-bottom: 0.375rem;
}
.form-control-modern {
  border: 2px solid #e9ecef;
  border-radius: 0.625rem;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control-modern:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.12);
}
.input-group-modern {
  position: relative;
}
.input-group-modern .input-icon {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: #adb5bd;
  z-index: 4;
  pointer-events: none;
}
.input-group-modern .form-control-modern {
  padding-left: 2.75rem;
}
.password-toggle-btn {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #adb5bd;
  cursor: pointer;
  z-index: 4;
  padding: 0.25rem;
  line-height: 1;
}
.password-toggle-btn:hover {
  color: var(--accent);
}
.btn-login {
  border-radius: 0.625rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-end) 100%);
  border: none;
  color: white;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-login:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.35);
  color: white;
}
.btn-login:active {
  transform: translateY(0);
}
.login-footer {
  margin-top: 2rem;
  text-align: center;
  color: #adb5bd;
  font-size: 0.8rem;
}
.alert {
  border-radius: 0.625rem;
  border: none;
  font-size: 0.9rem;
}

/* 2FA styles */
.two-factor-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}
.two-factor-icon i {
  font-size: 2rem;
  color: white;
}
.code-input {
  font-size: 1.75rem;
  letter-spacing: 0.5rem;
  text-align: center;
  font-weight: 600;
  border-radius: 0.625rem;
  border: 2px solid #e9ecef;
  padding: 0.875rem;
}
.code-input:focus {
  border-color: #11998e;
  box-shadow: 0 0 0 3px rgba(17, 153, 142, 0.12);
}

/* Passkey */
.passkey-divider {
  display: flex;
  align-items: center;
  margin: 1.25rem 0;
  color: #adb5bd;
  font-size: 0.85rem;
}
.passkey-divider::before,
.passkey-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e9ecef;
}
.passkey-divider span {
  padding: 0 0.75rem;
}
.btn-passkey {
  border-radius: 0.625rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  background: #fff;
  border: 2px solid #e9ecef;
  color: #1a1a2e;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.btn-passkey:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
  transform: translateY(-1px);
  color: var(--accent);
}
.btn-passkey:active {
  transform: translateY(0);
}
.btn-passkey i {
  font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 991.98px) {
  .login-brand-panel {
    display: none;
  }
  .login-form-panel {
    flex: 1;
    max-width: 100%;
  }
}
@media (max-width: 575.98px) {
  .login-form-panel {
    padding: 2rem 1.5rem;
  }
}
