/* =========================================================
   FUTUREPATH LOGIN PAGE
   Bulacan Polytechnic College

   MATCHES LANDING PAGE DESIGN SYSTEM
   - Forest Green: Authority, Trust, Growth
   - Blush Rose: Guidance, Empathy, Support
   - Cream / White: Clarity, Professionalism
========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap");

:root {
  /* ---------- BRAND GREEN ---------- */
  --green-950: #082d22;
  --green-900: #0b3d2e;
  --green-800: #104d3a;
  --green-700: #176044;
  --green-600: #267452;
  --green-500: #3d8c67;
  --green-100: #e8f4ed;
  --green-50: #f4faf6;

  /* ---------- GUIDANCE ROSE ---------- */
  --rose-700: #b97878;
  --rose-600: #c88c8c;
  --rose-500: #e0aaaa;
  --rose-400: #f2c3c3;
  --rose-200: #f8dddd;
  --rose-100: #fcebed;
  --rose-50: #fff7f8;

  /* ---------- NEUTRALS ---------- */
  --white: #ffffff;
  --cream: #fbfaf7;
  --text-900: #172c24;
  --text-800: #243b31;
  --text-700: #385248;
  --text-600: #526a61;
  --text-500: #70857d;
  --text-400: #94a39d;

  --border: #e4ebe7;
  --border-dark: #d4dfd9;
  --border-pink: #f2d7d7;

  /* ---------- EFFECTS ---------- */
  --shadow-xs: 0 2px 8px rgba(8, 45, 34, 0.04);
  --shadow-sm: 0 8px 24px rgba(8, 45, 34, 0.06);
  --shadow-md: 0 16px 38px rgba(8, 45, 34, 0.09);
  --shadow-lg: 0 25px 70px rgba(8, 45, 34, 0.14);
  --shadow-rose: 0 14px 35px rgba(201, 140, 140, 0.2);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --radius-pill: 999px;

  --transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  min-height: 100vh;
  background: var(--cream);
  color: var(--text-700);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ==========================
   CONTAINER
========================== */

.container {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

/* ==========================
   LEFT PANEL
========================== */

.left-panel {
  width: 38%;
  min-width: 380px;
  max-width: 480px;

  background: linear-gradient(
    160deg,
    var(--green-700) 0%,
    var(--green-800) 50%,
    var(--green-950) 100%
  );

  color: var(--white);

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;

  padding: 60px 40px;

  position: relative;
  overflow: hidden;
}

/* Decorative circles */

.left-panel::before {
  content: "";

  position: absolute;

  top: -120px;
  right: -120px;

  width: 320px;
  height: 320px;

  background: rgba(224, 170, 170, 0.12);

  border-radius: 50%;

  pointer-events: none;
}

.left-panel::after {
  content: "";

  position: absolute;

  bottom: -100px;
  left: -100px;

  width: 280px;
  height: 280px;

  background: rgba(255, 255, 255, 0.06);

  border-radius: 50%;

  pointer-events: none;
}

.left-content {
  z-index: 2;
  position: relative;

  max-width: 360px;
  width: 100%;

  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ==========================
   LOGO
========================== */

.logo {
  width: 200px;
  height: 200px;

  object-fit: contain;

  margin: 0 auto 25px;

  display: block;

  background: rgba(255, 255, 255, 0.14);

  border: 1px solid rgba(255, 255, 255, 0.18);

  border-radius: 50%;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  transition: transform 0.4s ease;

  box-shadow:
    0 15px 35px rgba(8, 45, 34, 0.25),
    0 0 0 6px rgba(255, 255, 255, 0.04);
}

.logo:hover {
  transform: translateY(-4px);
}

.left-panel h1 {
  font-size: 34px;

  font-weight: 700;

  margin-bottom: 8px;

  letter-spacing: -0.5px;

  line-height: 1.2;
}

.left-panel h2 {
  font-size: 17px;

  margin-bottom: 20px;

  font-weight: 500;

  color: var(--rose-200);

  opacity: 0.95;

  letter-spacing: 0.3px;
}

.left-panel p {
  line-height: 1.7;

  font-size: 14px;

  max-width: 320px;

  margin: 0 auto;

  color: rgba(255, 255, 255, 0.9);
}

/* ==========================
   WAVE
========================== */

.wave {
  position: absolute;

  bottom: 0;
  left: 0;

  width: 100%;

  z-index: 1;

  line-height: 0;

  pointer-events: none;
}

.wave svg {
  display: block;

  width: 100%;

  height: 150px;
}

/* ==========================
   RIGHT PANEL
========================== */

.right-panel {
  flex: 1;

  background:
    linear-gradient(
      135deg,
      rgba(8, 45, 34, 0.86) 0%,
      rgba(23, 96, 68, 0.78) 45%,
      rgba(201, 140, 140, 0.34) 100%
    ),
    url("../images/bpcbuild.jpg");

  background-size: cover;

  background-position: center;

  background-attachment: fixed;

  display: flex;

  justify-content: center;

  align-items: center;

  padding: 40px 20px;

  position: relative;

  min-height: 100vh;
}

.overlay {
  display: none;
}

/* ==========================
   LOGIN CARD
========================== */

.login-card {
  width: 100%;

  max-width: 460px;

  background: rgba(255, 255, 255, 0.97);

  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  border: 1px solid rgba(255, 255, 255, 0.7);

  border-radius: var(--radius-xl);

  padding: 45px 40px;

  box-shadow:
    var(--shadow-lg),
    0 0 0 1px rgba(8, 45, 34, 0.04);

  position: relative;

  animation: cardFadeIn 0.6s ease;

  z-index: 2;
}

@keyframes cardFadeIn {
  from {
    opacity: 0;

    transform: translateY(20px) scale(0.95);
  }

  to {
    opacity: 1;

    transform: translateY(0) scale(1);
  }
}

.login-card h1 {
  font-size: 28px;

  color: var(--text-900);

  font-weight: 700;

  margin-bottom: 6px;
}

.login-card > p {
  color: var(--text-500);

  margin-bottom: 25px;

  font-size: 14px;
}

/* ==========================
   ALERTS
========================== */

.alert {
  padding: 12px 16px;

  border-radius: var(--radius-sm);

  margin-bottom: 20px;

  font-size: 13px;

  font-weight: 500;

  display: flex;

  align-items: center;

  gap: 10px;

  animation: slideInDown 0.3s ease;
}

.alert-error {
  background: var(--rose-50);

  color: #8f4e4e;

  border: 1px solid var(--rose-200);
}

.alert-success {
  background: var(--green-50);

  color: var(--green-800);

  border: 1px solid #cde5d6;
}

.alert-warning {
  background: #fffaf0;

  color: #8a6530;

  border: 1px solid #f2dfb8;
}

.alert-info {
  background: var(--green-50);

  color: var(--green-700);

  border: 1px solid #d3e7dc;
}

.alert i {
  font-size: 16px;

  flex-shrink: 0;
}

@keyframes slideInDown {
  from {
    opacity: 0;

    transform: translateY(-10px);
  }

  to {
    opacity: 1;

    transform: translateY(0);
  }
}

/* ==========================
   LABELS & INPUTS
========================== */

label {
  display: block;

  margin-bottom: 8px;

  margin-top: 16px;

  font-weight: 600;

  color: var(--text-800);

  font-size: 12px;

  text-transform: uppercase;

  letter-spacing: 0.5px;
}

label:first-of-type {
  margin-top: 0;
}

input[type="email"],
input[type="password"],
input[type="text"] {
  width: 100%;

  padding: 14px 18px;

  border: 2px solid var(--border);

  border-radius: var(--radius-md);

  outline: none;

  font-size: 14px;

  font-family: inherit;

  background: var(--green-50);

  color: var(--text-900);

  transition: all 0.3s ease;

  -webkit-appearance: none;

  -moz-appearance: none;

  appearance: none;
}

input[type="email"]::placeholder,
input[type="password"]::placeholder,
input[type="text"]::placeholder {
  color: var(--text-400);
}

input[type="email"]:focus,
input[type="password"]:focus,
input[type="text"]:focus {
  border-color: var(--green-500);

  background: var(--white);

  box-shadow:
    0 0 0 4px rgba(61, 140, 103, 0.1),
    var(--shadow-xs);
}

input[type="email"]:hover:not(:focus),
input[type="password"]:hover:not(:focus),
input[type="text"]:hover:not(:focus) {
  border-color: var(--border-dark);
}

/* ==========================
   PASSWORD BOX
========================== */

.password-box {
  position: relative;
}

.password-box input {
  padding-right: 50px;
}

.password-box i {
  position: absolute;

  right: 18px;

  top: 50%;

  transform: translateY(-50%);

  cursor: pointer;

  color: var(--text-400);

  font-size: 16px;

  transition: color 0.2s ease;

  padding: 5px;

  z-index: 2;
}

.password-box i:hover {
  color: var(--green-600);
}

/* ==========================
   FORGOT PASSWORD
========================== */

.forgot {
  text-align: right;

  margin-top: 12px;

  margin-bottom: 22px;
}

.forgot a {
  color: var(--rose-700);

  font-size: 13px;

  font-weight: 600;

  transition: all 0.2s ease;

  position: relative;
}

.forgot a::after {
  content: "";

  position: absolute;

  bottom: -2px;

  left: 0;

  width: 0;

  height: 1px;

  background: var(--rose-700);

  transition: width 0.3s ease;
}

.forgot a:hover::after {
  width: 100%;
}

.forgot a:hover {
  color: var(--rose-600);
}

/* ==========================
   LOGIN BUTTON
========================== */

button[type="submit"] {
  width: 100%;

  background: linear-gradient(
    135deg,
    var(--green-700) 0%,
    var(--green-900) 100%
  );

  color: var(--white);

  border: none;

  padding: 14px 20px;

  border-radius: var(--radius-md);

  cursor: pointer;

  font-size: 15px;

  font-weight: 600;

  font-family: inherit;

  transition: all 0.3s ease;

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 10px;

  box-shadow:
    0 8px 20px rgba(8, 45, 34, 0.18),
    0 2px 6px rgba(8, 45, 34, 0.08);

  letter-spacing: 0.3px;

  -webkit-tap-highlight-color: transparent;
}

button[type="submit"]:hover:not(:disabled) {
  transform: translateY(-2px);

  box-shadow:
    0 12px 28px rgba(8, 45, 34, 0.22),
    0 4px 10px rgba(8, 45, 34, 0.1);

  background: linear-gradient(
    135deg,
    var(--green-600) 0%,
    var(--green-800) 100%
  );
}

button[type="submit"]:active:not(:disabled) {
  transform: translateY(0);

  box-shadow: 0 6px 16px rgba(8, 45, 34, 0.16);
}

button[type="submit"]:disabled {
  opacity: 0.7;

  cursor: not-allowed;

  transform: none;
}

button[type="submit"] i {
  font-size: 14px;
}

/* ==========================
   DIVIDER
========================== */

.login-card hr {
  border: none;

  height: 1px;

  background: linear-gradient(
    to right,
    transparent,
    var(--border-dark),
    transparent
  );

  margin: 25px 0 20px;
}

/* ==========================
   REGISTER
========================== */

.register {
  text-align: center;

  font-size: 14px;

  color: var(--text-500);
}

.register a {
  color: var(--rose-700);

  font-weight: 600;

  transition: color 0.2s ease;

  margin-left: 4px;
}

.register a:hover {
  color: var(--green-700);

  text-decoration: underline;
}

/* ==========================
   TABLET
========================== */

@media (max-width: 1024px) {
  .right-panel {
    background-attachment: scroll;
  }

  .left-panel {
    padding: 50px 30px;
  }

  .logo {
    width: 140px;

    height: 140px;
  }

  .left-panel h1 {
    font-size: 30px;
  }

  .login-card {
    max-width: 420px;

    padding: 40px 35px;
  }
}

/* ==========================
   SMALL TABLET
========================== */

@media (max-width: 900px) {
  .container {
    flex-direction: column;

    min-height: 100vh;
  }

  .left-panel {
    width: 100%;

    min-width: 100%;

    max-width: 100%;

    min-height: auto;

    padding: 30px 20px 80px;

    order: 1;
  }

  .left-content {
    max-width: 100%;
  }

  .logo {
    width: 110px;

    height: 110px;

    padding: 15px;

    margin-bottom: 18px;
  }

  .left-panel h1 {
    font-size: 24px;

    margin-bottom: 6px;
  }

  .left-panel h2 {
    font-size: 15px;

    margin-bottom: 12px;
  }

  .left-panel p {
    font-size: 13px;

    max-width: 100%;

    padding: 0 20px;
  }

  .wave svg {
    height: 80px;
  }

  .right-panel {
    width: 100%;

    flex: 1;

    min-height: auto;

    padding: 30px 20px;

    order: 2;
  }

  .login-card {
    width: 100%;

    max-width: 440px;

    padding: 35px 30px;
  }

  .login-card h1 {
    font-size: 24px;
  }
}

/* ==========================
   MOBILE
========================== */

@media (max-width: 600px) {
  body {
    overflow-y: auto;
  }

  .container {
    flex-direction: column;
  }

  .left-panel {
    width: 100%;

    min-height: auto;

    padding: 25px 20px 70px;
  }

  .left-panel::before {
    top: -80px;

    right: -80px;

    width: 200px;

    height: 200px;
  }

  .left-panel::after {
    bottom: -60px;

    left: -60px;

    width: 180px;

    height: 180px;
  }

  .logo {
    width: 90px;

    height: 90px;

    padding: 12px;

    margin-bottom: 15px;
  }

  .left-panel h1 {
    font-size: 20px;
  }

  .left-panel h2 {
    font-size: 13px;

    margin-bottom: 10px;
  }

  .left-panel p {
    display: none;
  }

  .wave svg {
    height: 60px;
  }

  .right-panel {
    width: 100%;

    padding: 25px 15px;

    background-attachment: scroll;
  }

  .login-card {
    padding: 28px 22px;

    border-radius: var(--radius-lg);

    max-width: 100%;
  }

  .login-card h1 {
    font-size: 22px;
  }

  .login-card > p {
    font-size: 13px;

    margin-bottom: 20px;
  }

  label {
    font-size: 11px;

    margin-top: 14px;
  }

  input[type="email"],
  input[type="password"],
  input[type="text"] {
    padding: 12px 16px;

    font-size: 14px;
  }

  button[type="submit"] {
    padding: 12px 18px;

    font-size: 14px;
  }

  .alert {
    font-size: 12px;

    padding: 10px 14px;
  }

  .forgot {
    margin-bottom: 18px;
  }

  .login-card hr {
    margin: 20px 0 15px;
  }

  .register {
    font-size: 13px;
  }
}

/* ==========================
   EXTRA SMALL
========================== */

@media (max-width: 400px) {
  .left-panel {
    padding: 20px 15px 60px;
  }

  .logo {
    width: 80px;

    height: 80px;
  }

  .left-panel h1 {
    font-size: 18px;
  }

  .left-panel h2 {
    font-size: 12px;
  }

  .login-card {
    padding: 25px 18px;

    border-radius: var(--radius-md);
  }

  .login-card h1 {
    font-size: 20px;
  }

  input[type="email"],
  input[type="password"],
  input[type="text"] {
    padding: 11px 14px;

    font-size: 13px;
  }

  button[type="submit"] {
    padding: 11px 16px;

    font-size: 13px;
  }
}

/* ==========================
   ULTRA SMALL
========================== */

@media (max-width: 360px) {
  .login-card {
    padding: 20px 15px;
  }

  .left-panel {
    padding: 15px 10px 50px;
  }

  .logo {
    width: 70px;

    height: 70px;
  }

  .left-panel h1 {
    font-size: 16px;
  }
}

/* ==========================
   LANDSCAPE MOBILE
========================== */

@media (max-height: 500px) and (orientation: landscape) {
  .container {
    flex-direction: row;
  }

  .left-panel {
    width: 35%;

    min-width: 280px;

    padding: 20px;
  }

  .logo {
    width: 70px;

    height: 70px;

    margin-bottom: 10px;
  }

  .left-panel h1 {
    font-size: 20px;
  }

  .left-panel h2 {
    font-size: 13px;

    margin-bottom: 8px;
  }

  .left-panel p {
    display: none;
  }

  .wave {
    display: none;
  }

  .right-panel {
    flex: 1;
  }

  .login-card {
    padding: 25px 30px;

    max-width: 380px;
  }
}

/* ==========================
   SCROLLBAR
========================== */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--cream);
}

::-webkit-scrollbar-thumb {
  background: var(--green-600);

  border-radius: var(--radius-pill);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--green-800);
}

/* ==========================
   ACCESSIBILITY
========================== */

input:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--rose-600);

  outline-offset: 2px;
}

/* ==========================
   LOADING SPINNER
========================== */

.fa-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* ==========================
   PRINT
========================== */

@media print {
  .left-panel,
  .wave,
  .forgot,
  .register {
    display: none;
  }

  .right-panel {
    background: var(--white);
  }

  .login-card {
    box-shadow: none;

    border: 1px solid var(--border-dark);
  }
}
