/* ================================================================
   TTU Student Cloud — Login Page Styles
================================================================ */

#login-page {
  min-height: 100vh;
  display: flex;
  background: var(--bg);
}

/* Left panel — branding */
.login-left {
  width: 44%;
  background: linear-gradient(150deg, #071a5c 0%, #0A2A7A 50%, #0d2060 100%);
  display: flex; flex-direction: column;
  justify-content: center; align-items: flex-start;
  padding: 60px;
  position: relative; overflow: hidden;
  flex-shrink: 0;
}
.login-left::before {
  content: ''; position: absolute;
  top: -20%; right: -15%;
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(255,193,7,.14) 0%, transparent 65%);
  border-radius: 50%; pointer-events: none;
}
.login-left::after {
  content: ''; position: absolute;
  bottom: -10%; left: -10%;
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(255,255,255,.05) 0%, transparent 65%);
  border-radius: 50%; pointer-events: none;
}

.login-logo-wrap {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 52px;
}
.login-logo-badge {
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--accent); display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 900;
  font-size: 26px; color: var(--primary-dark);
  box-shadow: 0 8px 24px rgba(255,193,7,.35);
  flex-shrink: 0;
}
.login-logo-text { }
.login-logo-name {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 900; color: white; letter-spacing: -.3px;
}
.login-logo-sub { font-size: 12px; color: rgba(255,255,255,.5); }

.login-headline {
  position: relative; z-index: 1;
  font-family: var(--font-display);
  font-size: 40px; font-weight: 900;
  color: white; line-height: 1.1; letter-spacing: -.8px;
  margin-bottom: 18px;
}
.login-headline span { color: var(--accent); }

.login-desc {
  position: relative; z-index: 1;
  font-size: 15px; color: rgba(255,255,255,.65);
  line-height: 1.65; max-width: 380px; margin-bottom: 40px;
}

.login-features {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: 12px;
}
.login-feature {
  display: flex; align-items: center; gap: 12px;
  font-size: 13.5px; color: rgba(255,255,255,.8);
}
.login-feature i {
  width: 30px; height: 30px; border-radius: 8px;
  background: rgba(255,255,255,.12); display: grid; place-items: center;
  font-size: 17px; color: var(--accent); flex-shrink: 0;
}

.login-left-footer {
  position: absolute; bottom: 28px; left: 60px;
  font-size: 12px; color: rgba(255,255,255,.3); z-index: 1;
}

/* Right panel — form */
.login-right {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 48px 60px;
  overflow-y: auto;
}
.login-form-wrap { width: 100%; max-width: 420px; }

.login-form-title {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 900;
  letter-spacing: -.5px; margin-bottom: 6px;
}
.login-form-sub {
  font-size: 14px; color: var(--text-3); margin-bottom: 32px;
}

/* Role toggle */
.role-toggle {
  display: flex; background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: var(--r-full); padding: 4px;
  gap: 3px; margin-bottom: 26px;
}
.role-btn {
  flex: 1; padding: 9px 16px;
  border-radius: var(--r-full);
  font-weight: 700; font-size: 13.5px;
  color: var(--text-2); transition: all var(--t2);
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.role-btn i { font-size: 16px; }
.role-btn.active {
  background: var(--primary); color: white;
  box-shadow: 0 4px 12px rgba(10,42,122,.25);
}

/* Login form fields */
.login-field { margin-bottom: 16px; }
.login-label {
  display: block; font-size: 12.5px; font-weight: 700;
  color: var(--text-2); margin-bottom: 7px; letter-spacing: .1px;
}
.login-input {
  width: 100%; padding: 12px 15px;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--r); font-size: 14px; color: var(--text);
  outline: none; transition: border-color var(--t), box-shadow var(--t);
}
.login-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-50);
}
.login-input::placeholder { color: var(--text-3); }

.btn-login {
  width: 100%; padding: 13px;
  background: var(--primary); color: white;
  border-radius: var(--r); font-weight: 800; font-size: 15px;
  min-height: 48px; margin-top: 6px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all var(--t2);
  box-shadow: 0 6px 20px rgba(10,42,122,.3);
}
.btn-login:hover  { background: var(--primary-mid); transform: translateY(-1px); box-shadow: 0 8px 28px rgba(10,42,122,.4); }
.btn-login:active { transform: none; }
.btn-login:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-login i { font-size: 18px; }

.login-hint {
  text-align: center; margin-top: 14px;
  font-size: 12px; color: var(--text-3);
  font-family: var(--font-mono); line-height: 1.65;
}

.login-error {
  background: var(--crimson-light); border: 1.5px solid #fecdd3;
  color: var(--crimson); border-radius: var(--r); padding: 11px 14px;
  font-size: 13.5px; font-weight: 600; margin-bottom: 16px; display: none;
}
.login-error.show { display: flex; align-items: center; gap: 8px; }
.login-error i { font-size: 18px; flex-shrink: 0; }

.forgot-link {
  display: block; text-align: center; margin-top: 16px;
  font-size: 13px; color: var(--primary); font-weight: 600;
}
.forgot-link:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 860px) {
  .login-left { display: none; }
  .login-right { padding: 40px 24px; }
}
@media (max-width: 480px) {
  .login-right { padding: 24px 16px; }
  .login-form-title { font-size: 22px; }
}
