/* ─── MCC-MRF LOGIN PAGE CSS ─── */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');


*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --maroon: #8B1A2E;
  --maroon-dark: #6b1222;
  --maroon-light: rgba(139, 26, 46, 0.12);
  --white: #ffffff;
  --text: #1a1a2e;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --input-bg: #f8fafc;
  --error: #dc2626;
  --shadow-card: 0 20px 60px rgba(0, 0, 0, 0.12);
}

html,
body {
  height: 100%;
}

body {
  font-family: 'Roboto', sans-serif;
  background: #f1f5f9;
}

h1,
h2,
h3,
.brand-title {
  font-family: "Times New Roman", Sans-serif;
}


/* Layout */
.login-bg {
  display: flex;
  min-height: 100vh;
}

/* LEFT PANEL */
.login-left {
  flex: 1;
  background: linear-gradient(145deg, #8B1A2E 0%, #5a0e1e 60%, #3d0a14 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 52px;
  position: relative;
  overflow: hidden;
}

.login-left::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
}

.login-left::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -60px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
}

/* Brand */
.login-brand {
  display: flex;
  align-items: center;

  margin-bottom: 30px;
}

.login-logo {
  flex-shrink: 0;
}

.login-brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-title {
  font-size: 28px;
  font-weight: 700;
  color: white;
  letter-spacing: 1.5px;
  line-height: 1;
}

.brand-dot {
  opacity: 0.6;
  font-weight: 300;
}

.brand-sub {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3.5px;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
}

.brand-college {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* Tagline */
.login-tagline {
  margin-bottom: 48px;
  position: relative;
  z-index: 1;
}

.login-tagline h2 {
  font-size: 32px;
  font-weight: 700;
  color: white;
  margin-bottom: 14px;
  line-height: 1.25;
}

.login-tagline p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  max-width: 340px;
}

/* Stats */
.login-stats {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px 24px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
  z-index: 1;
  max-width: 360px;
}

.ls-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.ls-num {
  font-size: 26px;
  font-weight: 700;
  color: white;
  line-height: 1;
}

.ls-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ls-divider {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

/* RIGHT PANEL */
.login-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  background: #f1f5f9;
}

/* Login Card */
.login-card {
  background: white;
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  padding: 44px 40px 36px;
  width: 100%;
  max-width: 420px;
}

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

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

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

/* Form Groups */
.lf-group {
  margin-bottom: 20px;
}

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

.lf-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.lf-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: #9ca3af;
  pointer-events: none;
}

.lf-input {
  width: 100%;
  padding: 12px 14px 12px 44px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  color: var(--text);
  background: var(--input-bg);
  font-family: 'Roboto', sans-serif;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.lf-input:focus {
  border-color: var(--maroon);
  background: white;
  box-shadow: 0 0 0 3px rgba(139, 26, 46, 0.1);
}

.lf-input.input-error {
  border-color: var(--error);
}

.lf-eye-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: #9ca3af;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.lf-eye-btn:hover {
  color: var(--maroon);
}

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

/* Remember & Forgot */
.lf-forgot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  margin-top: -8px;
}

.lf-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
}

.lf-remember input[type="checkbox"] {
  accent-color: var(--maroon);
  width: 15px;
  height: 15px;
  cursor: pointer;
}

/* Error texts */
.lf-error {
  font-size: 12px;
  color: var(--error);
  margin-top: 5px;
  display: block;
  min-height: 16px;
}

.lf-error-global {
  font-size: 13px;
  color: var(--error);
  text-align: center;
  margin-top: 12px;
  display: none;
  background: transparent;
  border-radius: 8px;
  transition: all 0.3s;
}

.lf-error-global:not(:empty) {
  display: block;
  padding: 10px 14px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  min-height: 20px;
}

/* Submit Button */
.lf-submit-btn {
  width: 100%;
  padding: 14px;
  background: var(--maroon);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Roboto', sans-serif;
  letter-spacing: 0.3px;
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
}

.lf-submit-btn:hover {
  background: var(--maroon-dark);
  box-shadow: 0 4px 16px rgba(139, 26, 46, 0.35);
}

.lf-submit-btn:active {
  transform: scale(0.98);
}

.lf-submit-btn:disabled {
  opacity: 0.7;
  pointer-events: none;
}

.lf-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}

.lf-submit-btn.loading .lf-spinner {
  display: block;
}

.lf-submit-btn.loading #loginBtnText {
  opacity: 0.8;
}

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

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

.lf-back-link {
  font-size: 13px;
  color: var(--maroon);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.lf-back-link:hover {
  color: var(--maroon-dark);
  text-decoration: underline;
}

/* ─── RESPONSIVE ──────────────────────────── */
@media (max-width: 900px) {
  .login-bg {
    flex-direction: column;
  }

  .login-left {
    padding: 32px 24px;
    min-height: unset;
  }

  .login-tagline h2 {
    font-size: 24px;
  }

  .login-stats {
    max-width: 100%;
  }

  .login-right {
    padding: 24px 16px 40px;
  }

  .login-card {
    padding: 32px 24px 28px;
  }
}

@media (max-width: 480px) {
  .login-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .brand-title {
    font-size: 22px;
  }

  .brand-sub {
    font-size: 11px;
  }

  .login-tagline {
    margin-bottom: 28px;
  }

  .login-tagline h2 {
    font-size: 20px;
  }

  .login-card-header h1 {
    font-size: 22px;
  }

  .lf-submit-btn {
    font-size: 14px;
  }
}