:root {
  --mit-navy: #071a35;
  --mit-deep: #0b2545;
  --mit-gold: #c9a44c;
  --mit-light-gold: #d8b45a;

  --white: #ffffff;
  --background: #f8fafc;
  --text: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
  --error: #dc2626;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--background);
  min-height: 100vh;
}

.login-container {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  min-height: 100vh;
}

/* left branding panel */

.branding-panel {
  position: relative;
  background:
    linear-gradient(135deg,
      rgba(7, 26, 53, 0.96),
      rgba(7, 26, 53, 0.68)),
    url('../images/malawi-tourism.jpg');
  background-size: cover;
  background-position: center;
  color: var(--white);
  overflow: hidden;
}

.branding-content {
  position: relative;
  z-index: 2;

  min-height: 100vh;

  padding: 55px 65px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Logo */

.institution-logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.institution-logo img {
  width: 75px;
  height: 75px;
  object-fit: contain;
}

.institution-logo h3 {
  font-size: 15px;
  letter-spacing: 1.5px;
  font-weight: 700;
}

.institution-logo span {
  display: block;
  color: var(--mit-light-gold);
  font-size: 12px;
  letter-spacing: 3px;
  margin-top: 5px;
}

/* Branding message */
.branding-message {
  max-width: 540px;
}

.branding-message .welcome-label {
  display: inline-block;
  color: var(--mit-light-gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;

  margin-bottom: 25px;
}

.branding-message h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(38px, 4.2vw, 58px);
  line-height: 1.2;

  font-weight: 600;
  margin-bottom: 25px;
}

.branding-message h1 span {
  display: block;
  color: var(--mit-light-gold);
}

.branding-message p {
  font-size: 15px;
  line-height: 1.9;
  color: #d8e0eb;
  max-width: 420px;
}

.branding-message .branding-divider {
  width: 65px;
  height: 3px;
  background: var(--mit-gold);
  margin: 35px 0 20px;
}

.branding-footer {
  display: flex;
  gap: 25px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--mit-light-gold);
}

/* bottom branding */

.branding-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;

  font-size: 11px;
  color: #d8e0eb;
}

/* Right Login Panel */

.login-panel {
  background: var(--background);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 45px;
}

.login-wrapper {
  width: 100%;
  max-width: 420px;
}

/* Login Heading */

.login-headig {
  margin-bottom: 40px;
}

.login-subtitle {
  color: #b28b36;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
}

.login-heading h2 {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 600;

  color: var(--mit-navy);

  margin: 15px 0 10px;
}

.login-heading p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

/* Form */

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  height: 55px;
  padding: 0 15px;
  transition: 0.25s ease;
}

.input-wrapper:focus-within {
  border-color: var(--mit-gold);
  box-shadow: 0 0 0 3px rgba(201, 164, 76, 0.12);
}

.input-wrapper-icon {
  width: 19px;
  color: var(--muted);
  margin-right: 12px;
}

.input-wrapper input {
  flex: 1;
  border: none;
  outline: none;
  height: 100%;
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  background: transparent;
}

.input-wrapper input::placeholder {
  color: #a0a9b7;
}

/* PASSWORD */

.password-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.password-label a {
  font-size: 12px;
  text-decoration: none;
  color: #a47d29;
  margin-bottom: 10px;
}

.password-label a:hover {
  text-decoration: underline;
}

.password-toggle {
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--muted);
  display: flex;
  align-items: center;
}

.password-toggle svg {
  width: 19px;
}

/* REMEMBER ME */

.remember-me {
  margin: 5px 0 30px;
}

.remember-me label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
}

.remember-me input {
  accent-color: var(--mit-navy);
  width: 15px;
  height: 15px;
}

/* Login button */
.login-button {
  width: 100%;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--mit-navy);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s ease;
}

.login-button:hover {
  background: #12345a;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(7, 26, 53, 0.15);
}

.login-button:active {
  transform: translateY(0);
}

.login-button svg {
  width: 18px;
}

/* Error Message */

.error-message {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: var(--error);
  padding: 13px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 25px;

}

/* Login divider */
.login-divider {
  display: flex;
  align-items: center;
  gap: 15px;

  margin: 15px 0;

  color: #94a3b8;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
}

.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Support */
.support-message {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.support-message-icon {
  color: var(--mit-gold);
  width: 20px;
  flex-shrink: 0;
}

.support-message p {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}

.support-message a {
  display: inline-block;
  color: #a47d29;
  font-weight: 600;
  text-decoration: none;
}

/* FOOTER */

.login-footer {
  border-top: 1px solid var(--border);

  margin-top: 45px;
  padding-top: 20px;

  text-align: center;

  color: #94a3b8;
  font-size: 11px;
  line-height: 2;
}

/* MOBILE LOGO */

.mobile-logo {
  display: none;
}


/* Tablet */

@media screen and (max-width: 900px) {
  .login-container {
    grid-template-columns: 1fr;
  }

  .branding-panel {
    display: none;
  }

  .login-panel {
    min-height: 100vh;
  }

  .mobile-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 55px;
    color: var(--mit-navy);
    font-weight: 800;
    letter-spacing: 1px;
  }

  .mobile-logo img {
    width: 55px;
    height: 55px;
    object-fit: contain;
  }
}

/* mobile */

@media screen and (max-width: 480px) {
  .login-panel {
    padding: 30px 20px;
  }

  .login-wrapper {
    max-width: 100%;
  }

  .login-heading {
    margin-bottom: 30px;
  }

  .login-heading h2 {
    font-size: 30px;
  }

  .mobile-logo {
    margin-bottom: 40px;
  }

  .login-footer {
    margin-top: 35px;
  }
}