/*=========================================================
                    AUTH PAGE LAYOUT
=========================================================*/
.auth-page{
    min-height:100vh;
    min-height:100dvh;   /* phones: the visible height, not the height behind the address bar */

    display:flex;
    align-items:center;
    justify-content:center;

    padding:40px 20px;

    background-color: #F3EFE8;
    background-image:
        repeating-linear-gradient(
            45deg,
            rgba(139, 111, 78, 0.09) 0px,
            rgba(139, 111, 78, 0.09) 1.5px,
            transparent 1.5px,
            transparent 7px
        ),
        repeating-linear-gradient(
            -45deg,
            rgba(139, 111, 78, 0.09) 0px,
            rgba(139, 111, 78, 0.09) 1.5px,
            transparent 1.5px,
            transparent 7px
        ),
        radial-gradient(
            rgba(120, 90, 60, 0.12) 1.2px,
            transparent 1.2px
        );
    background-size: 7px 7px, 7px 7px, 10px 10px;
    background-attachment: fixed;
}

.auth-card{
    width:100%;
    max-width:480px;

    background:#FFFFFF;
    border-radius:24px;

    padding:44px 40px;

    box-shadow:0 20px 50px rgba(0,0,0,.08);

    position:relative;
}

.auth-back{
    display:inline-flex;
    align-items:center;
    gap:8px;

    font-size:13px;
    color:#777;
    font-weight:500;

    margin-bottom:24px;

    transition:.3s;
}

.auth-back:hover{
    color:#8B5E3C;
}

.auth-logo{
    display:flex;
    align-items:center;
    gap:12px;

    margin-bottom:22px;
}

.auth-logo img{
    width:44px;
    height:44px;
    object-fit:cover;
    border-radius:50%;
    border:3px solid #8B5E3C;
}

.auth-logo h1{
    color:#8B5E3C;
    font-size:22px;
    font-weight:700;
}

.auth-card h2{
    font-size:26px;
    font-weight:700;
    color:#2B2621;
    margin-bottom:6px;
}

.auth-subtitle{
    color:#777;
    font-size:14px;
    margin-bottom:26px;
}

.auth-error{
    background:#FDECEC;
    color:#C0392B;

    padding:12px 16px;
    border-radius:10px;

    font-size:13px;
    font-weight:500;

    margin-bottom:20px;
}


/*=========================================================
                    FORM FIELDS
=========================================================*/
.auth-row{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:16px;
}

.input-group{
    margin-bottom:18px;
}

.input-group label{
    display:block;

    font-size:13px;
    font-weight:600;
    color:#444;

    margin-bottom:8px;
}

.input-group input{
    width:100%;

    padding:13px 16px;

    border:1px solid #DDDDDD;
    border-radius:10px;

    font-size:14px;
    font-family:'Poppins',sans-serif;

    transition:.3s;
}

.input-group input:focus{
    outline:none;
    border-color:#8B5E3C;
    box-shadow:0 0 0 3px rgba(139,94,60,.15);
}

.auth-submit{
    width:100%;

    padding:14px;
    border-radius:10px;

    font-size:15px;

    margin-top:6px;
}

.auth-switch{
    text-align:center;

    margin-top:24px;

    font-size:14px;
    color:#777;
}

.auth-switch a{
    color:#8B5E3C;
    font-weight:600;
}


/*=========================================================
                    RESPONSIVE
=========================================================*/
@media (max-width:900px){

    /* iPhone Safari does not support a fixed background (it scrolls choppily) */
    .auth-page{
        background-attachment:scroll;
    }

}

@media (max-width:520px){

    .auth-page{
        padding:24px 14px;
    }

    /* 16px stops iPhone Safari from zooming into the field */
    .input-group input,
    .input-group select{
        font-size:16px;
    }

    .auth-card{
        padding:34px 26px;
    }

    .auth-row{
        grid-template-columns:1fr;
        gap:0;
    }

}
