
/* poppins */
@font-face {
  font-family: "Poppins";
  src: url("./fonts/poppins/Poppins-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Poppins";
  src: url("./fonts/poppins/Poppins-BlackItalic.ttf") format("truetype");
  font-weight: 900;
  font-style: italic;
}

@font-face {
  font-family: "Poppins";
  src: url("./fonts/poppins/Poppins-BoldItalic.ttf") format("truetype");
  font-weight: bold;
  font-style: italic;
}

@font-face {
  font-family: "Poppins";
  src: url("./fonts/poppins/Poppins-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
}

@font-face {
  font-family: "Poppins";
  src: url("./fonts/poppins/Poppins-LightItalic.ttf") format("truetype");
  font-weight: 300;
  font-style: italic;
}

@font-face {
  font-family: "Poppins";
  src: url("./fonts/poppins/Poppins-SemiBoldItalic.ttf") format("truetype");
  font-weight: 600;
  font-style: italic;
}

@font-face {
  font-family: "Poppins";
  src: url("./fonts/poppins/Poppins-ThinItalic.ttf") format("truetype");
  font-weight: 100;
  font-style: italic;
}

@font-face {
  font-family: "Poppins";
  src: url("./fonts/poppins/Poppins-ExtraBoldItalic.ttf") format("truetype");
  font-weight: 800;
  font-style: italic;
}

@font-face {
  font-family: "Poppins";
  src: url("./fonts/poppins/Poppins-Italic.ttf") format("truetype");
  font-weight: normal;
  font-style: italic;
}

@font-face {
  font-family: "Poppins";
  src: url("./fonts/poppins/Poppins-Thin.ttf") format("truetype");
  font-weight: 100;
  font-style: normal;
}

@font-face {
  font-family: "Poppins";
  src: url("./fonts/poppins/Poppins-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: "Poppins";
  src: url("./fonts/poppins/Poppins-Bold.ttf") format("truetype");
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: "Poppins";
  src: url("./fonts/poppins/Poppins-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "Poppins";
  src: url("./fonts/poppins/Poppins-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
}

@font-face {
  font-family: "Poppins";
  src: url("./fonts/poppins/Poppins-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}

:root {
  --primary: #1f2f4d;
  --muted: #8a94a6;
  --bg: #fff;
  --card: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Poppins" !important;
  background: var(--bg);
  color: #1b2430;
}

/* =========================================
   Universal Layout Wrappers
   ========================================= */

/* SPLIT SCREEN LAYOUT (TypeLogin) */
.login-wrapper {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  position: relative;
  overflow-x: hidden;
}

/* CENTERED LAYOUT (Login) */
.login-centered-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    position: relative;
    padding-bottom: 0;
}

/* =========================================
   Left Hero Side (Split Screen)
   ========================================= */
.login-hero {
  position: relative;
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.15)),
    url("../typeformassets/login-hero.png") center / cover no-repeat;
  padding: 60px;
  display: flex;
  align-items: center; /* Center content vertically */
  justify-content: center;
  color: #fff;
}

/* Home Button (Tab Style) */
.home-btn {
    position: absolute;
    top: 60px; /* Align near logo or top padding */
    right: 0; 
    width: 60px;
    height: 50px;
    background: #ffffff;
    border-top-left-radius: 25px;
    border-bottom-left-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1f3352;
    font-size: 20px;
    text-decoration: none;
    z-index: 20;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transition: width 0.3s ease;
}

.home-btn:hover {
    width: 70px;
    color: #1f3352;
}

.home-btn i {
    margin-left: 5px; /* Slight offset since it's a right-edge tab */
}

.brand {
  width: 100%;
  max-width: 480px;
  position: relative;
}

.brand img {
  width: 100%;
  height: auto;
  display: block;
}


/* =========================================
   Right Panel / Main Content Area
   ========================================= */
.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 2rem;
  width: 100%;
  position: relative;
}

/* For split screen specifically, ensure it takes full height */
.login-wrapper .login-panel {
    min-height: 100vh;
    padding-bottom: 0;
}


/* =========================================
   Login Card (The Form Container)
   ========================================= */
.login-card.modern {
  width: 100%;
  max-width: 520px;
  background: transparent;
  text-align: center;
}


/* Title Area */
.login-title {
  font-family: "Poppins", sans-serif;
  font-size: 32px;
  font-weight: 600;
  margin: 0 0 8px;
  color: #1f3352;
}

.login-subtitle {
  font-size: 22px;
  color: #787878;
  margin: 0 0 40px;
  font-weight: 300;
  text-align: left;
}


/* Form Inner Box (White Card Shadow) */
.login-panel-inner {
  background: #ffffff;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0px 4px 24.3px rgba(0, 0, 0, 0.1);
  text-align: left;
}


/* =========================================
   Form Inputs & Controls
   ========================================= */
.form-group.modern-input {
  margin-bottom: 24px;
}

.form-group.modern-input input {
  width: 100%;
  height: 50px;
  border-radius: 8px;
  border: 1px solid #f0f0f0;
  box-shadow: 0px 4px 24.3px rgba(0, 0, 0, 0.1);
  background: #fdfdfd;
  padding: 0 20px;
  font-size: 15px;
  color: #333;
  outline: none;
  transition: all 0.3s ease;
}

.form-group.modern-input input:focus {
  border-color: #e0e0e0;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.form-group.modern-input input::placeholder {
  color: #aaa;
}

/* Password Eye */
.password-wrap {
  position: relative;
}
.eye-btn {
  position: absolute;
  right: 16px;
  top: 25px;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #aaa;
  padding: 5px;
}
.eye-btn:hover {
  color: #666;
}
.d-none { display: none; }


/* Forgot Password */
.forgot-row {
  text-align: right;
  margin-top: -10px;
  margin-bottom: 30px;
}
.forgot-row a {
  font-size: 13px;
  color: #919191;
  text-decoration: none;
}
.forgot-row a:hover {
  color: #1f3352;
}


/* Submit Button */
.submit-row.modern-submit {
  display: flex;
  justify-content: center;
  margin-top: -20px;
  margin-bottom: 0;
  position: relative;
  z-index: 2;
}

.submit-row.modern-submit button {
  background: #1f3352;
  color: #fff;
  border: none;
  height: 36px;
  min-width: 172px;
  padding: 0 15px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 14px rgba(31, 51, 82, 0.3);
}

.submit-row.modern-submit button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(31, 51, 82, 0.4);
}

.submit-row.modern-submit .arrow {
  width: 24px;
  height: 24px;
  background: #fff;
  color: #1f3352;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
}

/* Register Text */
.register-text {
  text-align: center;
  margin-top: 50px;
  font-size: 13px;
  color: #666;
}
.register-link {
    display: flex;
    justify-content: center;
    gap: 5px;
    align-items: center;
}
.register-link p {
  font-size: 16px;
    margin: 0;
    color: #555;
    font-weight: 500;
}
.register-link a {
  color: #1f3352;
  font-weight: 500;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 16px;
}

/* Validation Errors */
.error {
  color: #e74c3c;
  font-size: 12px;
  margin-top: 5px;
  padding-left: 4px;
}


/* =========================================
   Stats Footer (Shared)
   ========================================= */

/* General Footer Box Styling */
.footer-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 40px;
  height: 100%;
}

/* Colors for the boxes */
.bg-dark-blue { background: #1F3352; color: #fff; }
.bg-med-blue { background: #3F5A85; color: #fff; }
.bg-light-blue { background: #6887B8; color: #fff; }
.bg-lighter-blue { background: #9BBAEB; color: #1F3352; }
.bg-pale-blue { background: #CEE1FD; color: #1F3352; }
.bg-white-blue { background: #F6F9FF; color: #1F3352; }

.footer-box p {
  margin: 0;
  line-height: 1.2;
}

.stat-number {
  font-size: 36px;
  font-weight: 400;
  margin-bottom: 2px;
}
.stat-number strong { font-weight: 600; }
.stat-number sup { font-size: 18px; top: -0.8em; }
.stat-number sub { font-size: 16px; bottom: 0; font-weight: 300; }

.stat-divider {
  width: 50px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
  margin: 10px 0;
}

.stat-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.9;
  font-weight: 400;
}


/* LAYOUT 1: SPLIT SCREEN FOOTER (Single Row) */
.stats-footer.right-pane-only {
  width: 100%;
  height: 140px;
  display: flex;
  flex-direction: row;
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 10;
}

/* LAYOUT 2: CENTERED FOOTER (Two Rows) */
.stats-footer-centered {
  width: 100%;
  height: 280px; /* 140px * 2 */
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
}

.stats-footer-centered .stats-row {
  display: flex;
  flex-direction: row;
  height: 140px;
  width: 100%;
}

/* =========================================
   Responsive
   ========================================= */

@media (max-width: 1200px) {
    .stats-footer.right-pane-only .footer-box, 
    .stats-footer-centered .footer-box {
        padding: 0 20px;
    }
    .stat-number { font-size: 28px; }
}

@media (max-width: 991px) {
    /* Stack split screen */
    .login-wrapper {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 100vh;
    }
    
    .login-hero {
        display: none; 
    }

    .login-wrapper .login-panel {
        padding-bottom: 0;
    }
    
    .login-centered-wrapper {
        padding-bottom: 0;
    }

    /* Adjust footer for split screen (wrap to grid) */
    .stats-footer.right-pane-only {
        position: relative;
        height: auto;
        flex-wrap: wrap;
    }

    .stats-footer.right-pane-only .footer-box {
        min-width: 50%; /* 2 per row */
        height: 140px;
    }
    
    /* Adjust footer for centered screen (wrap to grid) */
    .stats-footer-centered {
        position: relative;
        height: auto;
    }
    .stats-footer-centered .stats-row {
        flex-wrap: wrap;
        height: auto;
    }
    .stats-footer-centered .footer-box {
        min-width: 100%; /* stack on smaller tablets/mobile */
        height: 120px;
        padding: 20px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    /* Tablet optimization: 2 per row */
    .stats-footer-centered .footer-box {
        min-width: 33.33%;
    }
}

@media (max-width: 600px) {
    .login-panel-inner {
        padding: 30px 20px;
    }
    
    .login-title {
        font-size: 26px;
    }
    
    /* Footer boxes on mobile */
    .footer-box {
        min-width: 100%; 
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
}
