
/* =========================================
   ZLW CHECKING
   AUTHENTICATION STYLES
   Login, Register, Forgot Password
========================================= */

:root {
    --brown: #492000;
    --brown-light: #75451F;
    --cream: #F5EBDD;
    --cream-dark: #E9DCC9;
    --white: #FFFFFF;
    --text: #30251D;
    --muted: #76685B;
}

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

html {
    min-height: 100%;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--white);
    min-height: 100vh;
}

a {
    text-decoration: none;
}

/* =========================================
   MAIN LAYOUT
========================================= */

.auth-page {
    display: grid;
    grid-template-columns: 42% 58%;
    width: 100%;
    min-height: 100vh;
}

/* =========================================
   BRAND PANEL
========================================= */

.brand-panel {
    position: relative;
    overflow: hidden;

    background:
        radial-gradient(
            circle at 15% 15%,
            rgba(255, 255, 255, 0.10),
            transparent 35%
        ),
        radial-gradient(
            circle at 90% 85%,
            rgba(180, 125, 75, 0.18),
            transparent 40%
        ),
        linear-gradient(
            145deg,
            #2D1304 0%,
            #492000 48%,
            #75451F 100%
        );

    color: var(--white);
    padding: 55px 10%;

    display: flex;
    flex-direction: column;
    justify-content: center;

    min-width: 0;
}

.brand-logo {
    display: flex;
    flex-direction: column;
    width: fit-content;
    color: var(--cream);
    line-height: 1.2;
}

.logo-symbol {
    font-size: 35px;
    font-weight: 800;
    letter-spacing: 3px;
}

.logo-name {
    font-size: 12px;
    letter-spacing: 5px;
}

.brand-content {
    width: 100%;
    max-width: 550px;
}

.brand-label {
    font-size: 10px;
    letter-spacing: 3px;
    color: var(--cream-dark);
}

.brand-content h1 {
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.2;
    margin: 25px 0;
    letter-spacing: -1px;
    overflow-wrap: break-word;
}

.brand-content p {
    color: var(--cream-dark);
    font-size: 14px;
    line-height: 1.9;
    max-width: 420px;
}

.brand-footer {
    margin-top: 40px;
    font-size: 10px;
    letter-spacing: 3px;
    color: var(--cream-dark);
}

/* =========================================
   FORM PANEL
========================================= */

.form-panel {
    display: flex;
    justify-content: center;
    align-items: center;

    padding: 50px 40px;

    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(233, 220, 201, 0.28),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #FFFFFF,
            #FFFEFC 65%,
            #FAF6F0
        );

    min-width: 0;
}

/* Form container inside form-panel */
.login-container {
    width: 100%;
    max-width: 410px;
    min-width: 0;
}

.mobile-logo {
    display: none;
}

/* =========================================
   FORM HEADING
========================================= */

.form-heading {
    margin-bottom: 35px;
}

.form-label {
    color: var(--brown-light);
    font-size: 10px;
    letter-spacing: 2px;
    font-weight: bold;
}

.form-heading h2 {
    color: var(--brown);
    font-size: 35px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.8px;
    margin: 15px 0 10px;
}

.form-heading p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

/* =========================================
   INPUT
========================================= */

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 9px;
    color: var(--brown);
    font-size: 13px;
    font-weight: bold;
}

.form-group input {
    display: block;
    width: 100%;
    height: 52px;
    padding: 0 16px;

    border: 1px solid var(--cream-dark);
    border-radius: 9px;

    background: #FFFEFC;
    color: var(--text);

    font-family: inherit;
    font-size: 13px;

    outline: none;
    transition: all 0.25s ease;
}

.form-group input:hover {
    border-color: #C9B49E;
}

.form-group input:focus {
    border-color: var(--brown-light);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(117, 69, 31, 0.09);
}

.form-group input::placeholder {
    color: #B0A397;
    transition: opacity 0.2s ease;
}

.form-group input:focus::placeholder {
    opacity: 0.6;
}

.form-group input:focus {
    border-color: var(--brown);
    box-shadow: 0 0 0 3px rgba(73, 32, 0, 0.08);
}

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

/* =========================================
   PASSWORD
========================================= */

.password-wrapper {
    position: relative;
    width: 100%;
}

.password-wrapper input {
    padding-right: 75px;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);

    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 8px;
    background: transparent;

    color: var(--brown-light);
    cursor: pointer;

    transition: all 0.25s ease;
}

.toggle-password svg {
    width: 19px;
    height: 19px;
    stroke-width: 1.8;
}

.toggle-password:hover {
    color: var(--brown);
    background: var(--cream);
}

.toggle-password:focus-visible {
    outline: 2px solid var(--brown-light);
    outline-offset: 2px;
}

/* =========================================
   FORGOT PASSWORD
========================================= */

.forgot-wrapper {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 25px;
}

.forgot-wrapper a {
    color: var(--brown-light);
    font-size: 12px;
    font-weight: bold;
    transition: color 0.25s ease;
}

.forgot-wrapper a:hover {
    color: var(--brown);
    text-decoration: underline;
}

/* =========================================
   BUTTON
========================================= */

.login-button {
    display: block;
    width: 100%;
    min-height: 52px;
    padding: 13px 18px;

    background: linear-gradient(
        135deg,
        var(--brown),
        var(--brown-light)
    );

    color: var(--white);
    border: none;
    border-radius: 9px;

    font-family: inherit;
    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    box-shadow: 0 7px 18px rgba(73, 32, 0, 0.16);

    transition: all 0.3s ease;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 11px 24px rgba(73, 32, 0, 0.23);
}

.login-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(73, 32, 0, 0.15);
}

.login-button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* =========================================
   MESSAGE
========================================= */

.login-message {
    padding: 12px;
    margin-top: 15px;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.6;
    background: var(--cream);
    color: var(--brown);
    overflow-wrap: anywhere;
}

.login-message:empty {
    display: none;
}

.login-message[hidden] {
    display: none;
}

/* =========================================
   REGISTER / LOGIN LINKS
========================================= */

.register-section {
    text-align: center;
    margin-top: 30px;
}

.register-section p {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.8;
}

.register-section a {
    color: var(--brown);
    font-weight: bold;
    transition: color 0.25s ease;
}

.register-section a:hover {
    color: var(--brown-light);
    text-decoration: underline;
}

.register-section a:hover {
    text-decoration: underline;
}

/* =========================================
   SECURITY NOTE
========================================= */

.security-note {
    text-align: center;
    margin-top: 55px;
}

.security-note span {
    font-size: 9px;
    letter-spacing: 2px;
    color: var(--brown-light);
    font-weight: bold;
}

.security-note p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.6;
}

/* =========================================
   TERMS AND CONDITIONS
========================================= */

.terms-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 5px 0 25px;
}

.terms-group input {
    width: 16px;
    height: 16px;
    margin-top: 3px;
    accent-color: var(--brown);
    flex-shrink: 0;
    cursor: pointer;
}

.terms-group label {
    font-size: 11px;
    line-height: 1.7;
    color: var(--muted);
    cursor: pointer;
}

.terms-group a {
    color: var(--brown);
    font-weight: bold;
    text-decoration: underline;
}

/* Registration spacing */
.auth-page:has(#registerForm) .form-panel {
    padding-top: 40px;
    padding-bottom: 40px;
}

.auth-page:has(#registerForm) .form-heading {
    margin-bottom: 25px;
}

.auth-page:has(#registerForm) .security-note {
    margin-top: 35px;
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 900px) and (min-width: 601px) {
    .auth-page {
        grid-template-columns: 38% 62%;
    }

    .brand-panel {
        padding: 40px 8%;
    }

    .form-panel {
        padding: 40px 28px;
    }

    .brand-content h1 {
        font-size: 36px;
    }

    .form-heading h2 {
        font-size: 30px;
    }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {
    .auth-page {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
    }

    .brand-panel {
        display: none;
    }

    .form-panel {
        display: flex;
        align-items: flex-start;
        justify-content: center;
        flex: 1;
        min-height: 100vh;
        padding: 35px 24px;
    }

    .login-container {
        max-width: 430px;
    }

    .mobile-logo {
        display: flex;
        flex-direction: column;
        align-items: center;
        color: var(--brown);
        margin-bottom: 45px;
        line-height: 1.2;
        text-align: center;
    }

    .mobile-logo h2,
    .mobile-logo span {
        font-size: 32px;
        font-weight: bold;
        letter-spacing: 2px;
    }

    .mobile-logo small {
        font-size: 10px;
        letter-spacing: 3px;
    }

    .form-heading {
        margin-bottom: 28px;
    }

    .form-heading h2 {
        font-size: 29px;
    }

    .form-heading p {
        font-size: 13px;
    }

    .security-note {
        margin-top: 45px;
    }

    .auth-page:has(#registerForm) .form-panel {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .auth-page:has(#registerForm) .mobile-logo {
        margin-bottom: 30px;
    }
}

/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 380px) {
    .form-panel {
        padding: 30px 18px;
    }

    .mobile-logo {
        margin-bottom: 35px;
    }

    .mobile-logo h2,
    .mobile-logo span {
        font-size: 27px;
    }

    .form-heading h2 {
        font-size: 25px;
    }
}

/* =========================================
   ZLW CHECKING
   UPDATE PASSWORD PAGE
========================================= */

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background:
        radial-gradient(circle at 15% 15%, rgba(117, 69, 31, 0.12), transparent 35%),
        linear-gradient(135deg, #F5EBDD, #FFFFFF 55%, #E9DCC9);
}

.auth-card {
    width: 100%;
    max-width: 460px;
    padding: 45px 40px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(73, 32, 0, 0.10);
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(73, 32, 0, 0.12);
}

.auth-header {
    margin-bottom: 32px;
}

.auth-header h1 {
    color: var(--brown);
    font-size: 29px;
    line-height: 1.3;
    margin-bottom: 12px;
}

.auth-header p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
}

.auth-container .form-group {
    margin-bottom: 22px;
}

.auth-container .form-group input {
    height: 52px;
    border-radius: 8px;
}

.auth-container button[type="submit"] {
    width: 100%;
    min-height: 52px;
    margin-top: 8px;
    padding: 13px 18px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #492000, #75451F);
    color: #FFFFFF;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(73, 32, 0, 0.18);
    transition: all 0.3s ease;
}

.auth-container button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(73, 32, 0, 0.25);
}

.auth-container button[type="submit"]:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 600px) {
    .auth-container {
        padding: 24px 18px;
    }

    .auth-card {
        padding: 32px 24px;
        border-radius: 14px;
    }

    .auth-header h1 {
        font-size: 25px;
    }
}

/* =========================================
   ZLW CHECKING
   AUTH PAGE ANIMATION
========================================= */

@keyframes authFadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.brand-content {
    animation: authFadeUp 0.7s ease both;
}

.login-container {
    animation: authFadeUp 0.6s ease both;
}

.mobile-logo {
    animation: authFadeUp 0.5s ease both;
}

@media (prefers-reduced-motion: reduce) {
    .brand-content,
    .login-container,
    .mobile-logo {
        animation: none;
    }
}

/* BACK TO HOME BUTTON */
.back-home {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 28px 0;
    padding: 10px 15px;
    color: #75451F;
    background: #F5EBDD;
    border: 1px solid #E8D8C5;
    border-radius: 10px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all .25s ease;
}

.back-home:hover {
    color: #fff;
    background: linear-gradient(135deg, #75451F, #492000);
    border-color: transparent;
    transform: translateX(-3px);
    box-shadow: 0 5px 15px rgba(73, 32, 0, .15);
}

.back-home i {
    width: 17px;
    height: 17px;
}
/* OFFICIAL ZLW LOGO - AUTHENTICATION */
.auth-brand-image {
    display: block;
    width: 150px;
    height: 90px;
    object-fit: contain;
}

.auth-mobile-image {
    display: block;
    width: 130px;
    height: 85px;
    object-fit: contain;
    margin: 0 auto;
}


/* UPDATE PASSWORD BRAND */
.update-password-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 24px;
    text-decoration: none;
}

.update-password-logo .auth-mobile-image {
    width: 120px;
    height: 80px;
}

