/* =====================================================
   ZFileo - SIGNUP
===================================================== */

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


:root {
    --primary: #5b5cf0;
    --primary-dark: #4b4ce0;
    --text: #18181b;
    --muted: #71717a;
    --border: #e4e4e7;
    --background: #f7f7fb;
    --white: #ffffff;
}


body {
    min-height: 100vh;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background:
        var(--background);

    color:
        var(--text);
}


/* =====================================================
   PAGE
===================================================== */

.auth-page {
    min-height: 100vh;

    display: grid;

    grid-template-columns:
        1fr 1fr;
}


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

.auth-brand {
    min-height: 100vh;

    padding: 48px;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    background:
        linear-gradient(
            145deg,
            #f1f2ff,
            #fafaff
        );
}


.brand-logo,
.mobile-logo {
    display: inline-flex;

    align-items: center;

    gap: 10px;

    width: fit-content;

    text-decoration: none;

    color:
        var(--text);
}


.brand-logo img,
.mobile-logo img {
    width: 38px;
    height: 38px;

    object-fit: contain;
}


.brand-logo span,
.mobile-logo span {
    font-size: 22px;

    font-weight: 700;

    letter-spacing: -0.4px;
}


.brand-content {
    max-width: 520px;

    margin:
        auto 0;
}


.brand-content h1 {
    font-size:
        clamp(42px, 5vw, 68px);

    line-height: 1.04;

    letter-spacing: -2.5px;

    margin-bottom: 24px;
}


.brand-content p {
    max-width: 470px;

    color:
        var(--muted);

    font-size: 17px;

    line-height: 1.7;
}


/* =====================================================
   RIGHT
===================================================== */

.auth-container {
    min-height: 100vh;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 40px 24px;

    background:
        var(--white);
}


.auth-card {
    width: 100%;

    max-width: 430px;
}


.mobile-logo {
    display: none;
}


/* =====================================================
   HEADER
===================================================== */

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


.auth-header h2 {
    font-size: 32px;

    line-height: 1.2;

    letter-spacing: -1px;

    margin-bottom: 9px;
}


.auth-header p {
    color:
        var(--muted);

    font-size: 15px;

    line-height: 1.6;
}


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

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


.form-group label {
    display: block;

    margin-bottom: 8px;

    font-size: 14px;

    font-weight: 600;
}


.form-group input {
    width: 100%;

    height: 50px;

    padding:
        0 14px;

    border:
        1px solid var(--border);

    border-radius: 9px;

    outline: none;

    background:
        var(--white);

    color:
        var(--text);

    font-size: 15px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.form-group input:focus {
    border-color:
        var(--primary);

    box-shadow:
        0 0 0 3px rgba(91, 92, 240, 0.1);
}


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

.password-wrapper {
    position: relative;
}


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


.password-toggle {
    position: absolute;

    right: 12px;
    top: 50%;

    transform:
        translateY(-50%);

    width: 30px;
    height: 30px;

    border: none;

    background:
        transparent;

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;
}


.eye-icon {
    width: 20px;
    height: 20px;

    fill: none;

    stroke:
        #71717a;

    stroke-width: 1.8;

    stroke-linecap: round;

    stroke-linejoin: round;
}


.eye-closed {
    display: none;
}


.password-toggle.showing
.eye-open {
    display: none;
}


.password-toggle.showing
.eye-closed {
    display: block;
}


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

.confirm-password-wrapper {
    position: relative;
}


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


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

.primary-btn {
    width: 100%;

    min-height: 52px;

    border: none;

    border-radius: 10px;

    background:
        var(--primary);

    color:
        var(--white);

    font-size: 15px;

    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.primary-btn:hover {
    background:
        var(--primary-dark);
}


.primary-btn:active {
    transform:
        scale(0.99);
}


.primary-btn:disabled {
    opacity: 0.65;

    cursor: not-allowed;
}


/* =====================================================
   DIVIDER
===================================================== */

.divider {
    display: flex;

    align-items: center;

    gap: 12px;

    margin:
        24px 0;
}


.divider span {
    flex: 1;

    height: 1px;

    background:
        var(--border);
}


.divider p {
    color:
        var(--muted);

    font-size: 12px;

    font-weight: 600;
}


/* =====================================================
   GOOGLE
===================================================== */

.google-btn {
    width: 100%;

    min-height: 52px;

    border:
        1px solid var(--border);

    border-radius: 10px;

    background:
        var(--white);

    color:
        var(--text);

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    padding:
        12px 18px;

    font-size: 15px;

    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.google-btn:hover {
    background:
        #fafafa;

    border-color:
        #d4d4d8;

    box-shadow:
        0 5px 18px rgba(0, 0, 0, 0.06);
}


.google-icon {
    width: 20px;
    height: 20px;

    display: flex;

    flex-shrink: 0;
}


.google-icon svg {
    width: 100%;
    height: 100%;
}


/* =====================================================
   SWITCH
===================================================== */

.auth-switch {
    margin-top: 26px;

    text-align: center;
}


.auth-switch p {
    color:
        var(--muted);

    font-size: 14px;
}


.auth-switch a {
    color:
        var(--primary);

    text-decoration: none;

    font-weight: 600;
}


.auth-switch a:hover {
    text-decoration: underline;
}


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

@media (max-width: 850px) {

    .auth-page {
        grid-template-columns: 1fr;
    }


    .auth-brand {
        display: none;
    }


    .auth-container {
        min-height: 100vh;

        padding:
            28px 20px;
    }


    .mobile-logo {
    display: inline-flex;
    margin-bottom: 45px;
    align-self: flex-start;
    transform: translateY(-150px);
   }
}


@media (max-width: 480px) {

    .auth-container {
        padding:
            24px 18px;
    }


    .mobile-logo {
    margin-bottom: 38px;
    transform: translateY(-150px);
}


    .mobile-logo span {
        font-size: 20px;
    }


    .auth-header h2 {
        font-size: 28px;
    }


    .google-btn {
        min-height: 50px;
    }
}