@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');


/* ==========================================
   RESET
========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html,
body {
    width: 100%;
    min-height: 100%;
}


body {
    font-family: 'Inter', sans-serif;
    background: #f4f7f5;
    color: #1f2937;
}


/* ==========================================
   PAGE
========================================== */

.login-page {
    width: 100%;
    min-height: 100vh;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 25px;

    overflow: hidden;
}


/* ==========================================
   MAIN CARD

   DO NOT CHANGE THIS TO COLUMN
========================================== */

.login-wrapper {
    width: 100% !important;
    max-width: 1080px !important;

    height: 600px !important;

    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;

    margin: 0 auto;

    background: #ffffff;

    border-radius: 26px;

    overflow: hidden;

    box-shadow:
        0 20px 60px rgba(15, 23, 42, 0.09);
}


/* ==========================================
   LEFT SIDE

   EXACTLY 50%
========================================== */

.branding-column {
    width: 50% !important;
    min-width: 50% !important;
    max-width: 50% !important;

    flex: 0 0 50% !important;

    height: 600px;

    position: relative;

    overflow: hidden;

    color: #ffffff;

    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(74, 222, 128, 0.24),
            transparent 35%
        ),
        linear-gradient(
            145deg,
            #064e3b,
            #15803d
        );
}


/* ==========================================
   DECORATIVE CIRCLES
========================================== */

.branding-column::before {
    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    border: 55px solid rgba(255, 255, 255, 0.035);

    border-radius: 50%;

    left: -170px;
    bottom: -170px;
}


.branding-column::after {
    content: "";

    position: absolute;

    width: 190px;
    height: 190px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.025);

    right: -95px;
    top: -95px;
}


/* ==========================================
   LEFT CONTENT
========================================== */

.branding-content {
    position: relative;

    z-index: 2;

    width: 100%;
    height: 100%;

    padding: 42px 50px;

    display: flex;
    flex-direction: column;
}


/* ==========================================
   LOGO
========================================== */

.brand-logo {
    display: flex;

    align-items: center;

    gap: 12px;
}


.logo-icon {
    width: 45px;
    height: 45px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 13px;

    background: rgba(255, 255, 255, 0.13);

    border: 1px solid rgba(255, 255, 255, 0.16);

    font-size: 21px;
}


.brand-name h4 {
    margin: 0;

    font-size: 21px;

    font-weight: 700;
}


.brand-name span {
    display: block;

    margin-top: 2px;

    color: rgba(255, 255, 255, 0.60);

    font-size: 8px;

    letter-spacing: 0.8px;
}


/* ==========================================
   BRANDING TEXT
========================================== */

.branding-text {
    margin-top: auto;

    margin-bottom: 30px;
}


.system-badge {
    display: inline-block;

    padding: 7px 12px;

    margin-bottom: 18px;

    border-radius: 50px;

    background: rgba(255, 255, 255, 0.10);

    border: 1px solid rgba(255, 255, 255, 0.12);

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 1px;
}


.branding-text h1 {
    max-width: 470px;

    margin-bottom: 14px;

    font-size: 38px;

    font-weight: 700;

    line-height: 1.15;

    letter-spacing: -1px;
}


.branding-text h1 span {
    display: block;

    color: #a7f3d0;
}


.branding-text p {
    max-width: 380px;

    margin: 0;

    color: rgba(255, 255, 255, 0.68);

    font-size: 13px;

    line-height: 1.6;
}


/* ==========================================
   FEATURES
========================================== */

.feature-list {
    margin-bottom: 5px;
}


.feature-item {
    display: flex;

    align-items: center;

    gap: 13px;

    margin-bottom: 13px;
}


.feature-icon {
    width: 40px;
    height: 40px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 11px;

    background: rgba(255, 255, 255, 0.09);

    font-size: 17px;
}


.feature-item h6 {
    margin-bottom: 2px;

    font-size: 13px;

    font-weight: 600;
}


.feature-item p {
    margin: 0;

    color: rgba(255, 255, 255, 0.58);

    font-size: 11px;
}


/* ==========================================
   LEFT FOOTER
========================================== */

.branding-footer {
    margin-top: auto;

    padding-top: 15px;

    color: rgba(255, 255, 255, 0.40);

    font-size: 10px;
}


/* ==========================================
   RIGHT SIDE

   EXACTLY 50%

   This is the part you wanted centered.
========================================== */

.login-column {
    width: 50% !important;
    min-width: 50% !important;
    max-width: 50% !important;

    flex: 0 0 50% !important;

    height: 600px;

    display: flex !important;

    align-items: center !important;
    justify-content: center !important;

    background: #ffffff;
}


/* ==========================================
   LOGIN CONTENT

   Fixed width so it doesn't stretch.
========================================== */

.login-section {
    width: 380px !important;

    max-width: calc(100% - 80px) !important;

    margin: 0 auto !important;

    flex-shrink: 0;
}


/* ==========================================
   HEADER
========================================== */

.login-header {
    margin-bottom: 28px;
}


.welcome-label {
    display: block;

    color: #15803d;

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 1.4px;
}


.login-header h2 {
    margin-top: 7px;

    margin-bottom: 8px;

    color: #1f2937;

    font-size: 27px;

    font-weight: 700;

    letter-spacing: -0.6px;
}


.login-header p {
    margin: 0;

    color: #6b7280;

    font-size: 12px;

    line-height: 1.5;
}


/* ==========================================
   FORM
========================================== */

.form-group {
    margin-bottom: 18px;
}


.form-group label {
    display: block;

    margin-bottom: 7px;

    color: #374151;

    font-size: 12px;

    font-weight: 600;
}


/* ==========================================
   PASSWORD LABEL
========================================== */

.password-label {
    display: flex;

    align-items: center;

    justify-content: space-between;
}


.password-label a {
    color: #15803d;

    font-size: 11px;

    font-weight: 600;

    text-decoration: none;
}


.password-label a:hover {
    text-decoration: underline;
}

/* Forgot password - placed below the password field */
.forgot-password {
    margin-top: 7px;
    text-align: right;
}

.forgot-password a {
    color: #15803d;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
}

.forgot-password a:hover {
    text-decoration: underline;
}


/* ==========================================
   INPUT
========================================== */

.input-wrapper {
    position: relative;

    width: 100%;
}


.input-icon {
    position: absolute;

    left: 15px;

    top: 50%;

    transform: translateY(-50%);

    color: #9ca3af;

    font-size: 16px;

    pointer-events: none;

    transition: color 0.2s ease;
}


.input-wrapper input {
    width: 100%;

    height: 50px;

    padding: 0 45px;

    border: 1px solid #e5e7eb;

    border-radius: 11px;

    background: #f9fafb;

    color: #1f2937;

    font-family: inherit;

    font-size: 12px;

    outline: none;

    transition: all 0.2s ease;
}


.input-wrapper input::placeholder {
    color: #a1a1aa;
}


.input-wrapper input:hover {
    background: #ffffff;

    border-color: #d1d5db;
}


.input-wrapper input:focus {
    background: #ffffff;

    border-color: #15803d;

    box-shadow:
        0 0 0 3px rgba(21, 128, 61, 0.08);
}


.input-wrapper:focus-within .input-icon {
    color: #15803d;
}


/* ==========================================
   PASSWORD TOGGLE
========================================== */

.toggle-password {
    position: absolute;

    right: 8px;

    top: 50%;

    transform: translateY(-50%);

    width: 34px;
    height: 34px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: none;

    border-radius: 8px;

    background: transparent;

    color: #9ca3af;

    cursor: pointer;

    transition: all 0.2s ease;
}


.toggle-password:hover {
    background: #f3f4f6;

    color: #15803d;
}


/* ==========================================
   REMEMBER ME
========================================== */

.remember-section {
    margin-bottom: 19px;
}


.custom-checkbox {
    display: flex;

    align-items: center;

    gap: 8px;

    color: #6b7280;

    font-size: 11px;

    cursor: pointer;
}


.custom-checkbox input {
    position: absolute;

    opacity: 0;
}


.checkmark {
    width: 16px;
    height: 16px;

    position: relative;

    border: 1px solid #d1d5db;

    border-radius: 4px;

    background: #ffffff;
}


.custom-checkbox input:checked + .checkmark {
    background: #15803d;

    border-color: #15803d;
}


.custom-checkbox input:checked + .checkmark::after {
    content: "✓";

    position: absolute;

    top: -2px;
    left: 3px;

    color: #ffffff;

    font-size: 11px;

    font-weight: bold;
}


/* ==========================================
   LOGIN BUTTON
========================================== */

.login-button {
    width: 100%;

    height: 50px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    border: none;

    border-radius: 11px;

    background: #15803d;

    color: #ffffff;

    font-family: inherit;

    font-size: 13px;

    font-weight: 600;

    cursor: pointer;

    transition: all 0.2s ease;
}


.login-button:hover {
    background: #064e3b;

    transform: translateY(-1px);

    box-shadow:
        0 8px 18px rgba(21, 128, 61, 0.18);
}


.login-button i {
    transition: transform 0.2s ease;
}


.login-button:hover i {
    transform: translateX(3px);
}


/* ==========================================
   REGISTER
========================================== */

.register-section {
    width: 100%;

    margin-top: 21px;

    text-align: center;

    color: #6b7280;

    font-size: 11px;

    line-height: 1.5;
}


.register-section a {
    margin-left: 3px;

    color: #15803d;

    font-weight: 600;

    text-decoration: none;
}


.register-section a:hover {
    text-decoration: underline;
}


/* ==========================================
   FOOTER
========================================== */

.login-footer {
    width: 100%;

    margin-top: 25px;

    text-align: center;

    color: #a1a1aa;

    font-size: 9px;
}


/* ==========================================
   TABLET / MOBILE
========================================== */

@media (max-width: 900px) {

    .login-page {
        padding: 20px;
    }


    .login-wrapper {
        width: 100% !important;

        max-width: 450px !important;

        height: auto !important;

        display: block !important;

        overflow: visible;

        background: transparent;

        box-shadow: none;
    }


    .branding-column {
        display: none !important;
    }


    .login-column {
        width: 100% !important;

        min-width: 100% !important;

        max-width: 100% !important;

        height: auto;

        min-height: 540px;

        flex: none !important;

        border-radius: 22px;

        box-shadow:
            0 15px 40px rgba(15, 23, 42, 0.08);
    }


    .login-section {
        width: 380px !important;

        max-width: calc(100% - 60px) !important;

        margin: 0 auto !important;
    }

}


@media (max-width: 500px) {

    .login-page {
        padding: 15px;
    }


    .login-column {
        min-height: 500px;
    }


    .login-section {
        width: 100% !important;

        max-width: calc(100% - 40px) !important;
    }


    .login-header h2 {
        font-size: 24px;
    }


    .register-section {
        white-space: normal;
    }

}