/* ============================================================
   Login Page — Professional White Split Layout
   ============================================================ */

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

/* ---- LEFT BRANDING PANEL ---- */
.auth-brand {
  flex: 0 0 44%;
  background: linear-gradient(160deg, #4f6ef7 0%, #7c5cfc 50%, #a855f7 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px;
  position: relative;
  overflow: hidden;
}

.auth-brand::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
}

.auth-brand::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50%;
}

.brand-content {
  position: relative;
  z-index: 1;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 48px;
}

.brand-logo .material-symbols-rounded {
  font-size: 32px;
  color: rgba(255, 255, 255, 0.95);
}

.brand-name {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
}

.brand-headline {
  font-size: 40px;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin: 0 0 20px;
  letter-spacing: -0.8px;
}

.brand-desc {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
  margin: 0 0 40px;
  max-width: 380px;
}

.brand-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

.feature-item .material-symbols-rounded {
  font-size: 20px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 6px;
}

.brand-footer {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 40px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

/* ---- RIGHT FORM PANEL ---- */
.auth-form-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: #ffffff;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  animation: fadeUp 0.5s ease-out;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.mobile-logo {
  display: none;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 18px;
  font-weight: 700;
  color: #1a1d26;
}

.mobile-logo .material-symbols-rounded {
  font-size: 28px;
  color: #4f6ef7;
}

.auth-header {
  margin-bottom: 32px;
}

.auth-header h1 {
  font-size: 28px;
  font-weight: 700;
  color: #1a1d26;
  margin: 0 0 6px;
  letter-spacing: -0.5px;
}

.auth-header p {
  font-size: 15px;
  color: #8492a6;
  margin: 0;
}

/* Alert */
.auth-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
  animation: shake 0.35s ease;
}

.auth-alert.error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.auth-alert .material-symbols-rounded {
  font-size: 20px;
  flex-shrink: 0;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-4px); }
  60% { transform: translateX(4px); }
}

/* Form */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 8px;
  letter-spacing: 0.2px;
}

.input-group {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: #c1c9d4;
  pointer-events: none;
  transition: color 0.2s;
}

.input-group input {
  width: 100%;
  padding: 13px 16px 13px 48px;
  background: #f8f9fb;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  color: #1a1d26;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
}

.input-group input::placeholder {
  color: #b0b8c4;
}

.input-group input:focus {
  border-color: #4f6ef7;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(79, 110, 247, 0.08);
}

.input-group input:focus + .input-icon,
.input-group:focus-within .input-icon {
  color: #4f6ef7;
}

/* Submit Button */
.submit-btn {
  width: 100%;
  padding: 14px 24px;
  background: #1a1d26;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  margin-top: 4px;
}

.submit-btn:hover:not(:disabled) {
  background: #2d3142;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26, 29, 38, 0.2);
}

.submit-btn:active:not(:disabled) {
  transform: translateY(0);
}

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

.submit-btn .material-symbols-rounded {
  font-size: 20px;
}

.btn-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Divider */
.auth-divider {
  text-align: center;
  margin: 28px 0;
  position: relative;
}

.auth-divider::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: #e2e8f0;
}

.auth-divider span {
  position: relative;
  padding: 0 16px;
  background: #fff;
  font-size: 13px;
  color: #8492a6;
  font-weight: 500;
}

/* Secondary Button */
.secondary-btn {
  display: block;
  width: 100%;
  padding: 13px 24px;
  text-align: center;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  background: transparent;
  color: #4a5568;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

.secondary-btn:hover {
  border-color: #4f6ef7;
  color: #4f6ef7;
  background: #f5f7ff;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .auth-brand { display: none; }
  .auth-form-panel { padding: 24px; }
  .mobile-logo { display: flex; }
}

@media (max-width: 480px) {
  .auth-card { max-width: 100%; }
  .auth-header h1 { font-size: 24px; }
}
