@import url('/landing/landing-styles/variables.css');
@import url('/landing/landing-styles/base.css');
@import url('/landing/landing-styles/toast.css');
@import url('/landing/landing-styles/popup.css');
@import url('/landing/landing-styles/cookie-banner.css');

.auth-page{
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

@media (max-width: 900px){
    .auth-page{
        grid-template-columns: 1fr;
    }
    .brand-panel{
        padding: 40px 24px;
    }
    .go-back{
        top: -40px;
    }
    .form-panel{
        padding: 24px;
    }
    .form-card{
        padding: 28px 24px;
    }
}

/* Left panel */
.brand-panel{
    position: relative;
    background-image: url('/Images/screen.png');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.brand-panel::before{
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(142, 19, 0, 0.75);
    z-index: 1;
}

.brand-panel > *{
    position: relative;
    z-index: 2;
}

.go-back{
    position: absolute;
    top:-60px;
    left: 0px;
    font-size: 30px;
    color: #fff;
    text-decoration: none;
}

.brand-logo{
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 40px;
    font-family: var(--headers);
}

.brand-panel h1{
    font-size: 40px;
    margin-bottom: 12px;
    font-family: var(--headers);
    font-size: 40px;
    font-weight: 750;
}

.brand-panel p{
    font-size: 15px;
    opacity: 0.85;
    margin-bottom: 40px;
}

.features{
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.feature{
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    padding: 14px 16px;
}

.feature h3{
    font-size: 14px;
    margin-bottom: 4px;
    font-family: var(--headers);
}

.feature p{
    font-size: 13px;
    opacity: 0.75;
    margin: 0;
}

/* Right panel */
.form-panel{
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.form-card{
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    padding: 40px;
    width: 100%;
    max-width: 550px;
}

.role-toggle{
    display: flex;
    background: #f1f1f1;
    border-radius: 999px;
    padding: 4px;
    margin-bottom: 24px;
}

.role-btn{
    flex: 1;
    border: none;
    background: none;
    padding: 10px;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    color: #666;
    font-family: var(--headers);
}

.role-btn.active{
    background: #8E1300;
    color: #fff;
    transition: var(--transition);
}

.form-card h2{
    font-size: 22px;
    margin-bottom: 20px;
    font-family: var(--headers);
}

.sub-title{
    color: var(--muted-text);
    font-family: var(--body-font);
    font-size: 13px;
    margin: -8px 0 20px;
}

.form-group{
    margin-bottom: 14px;
}

.form-row{
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

input, select{
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 14px;
    font-family: var(--body-font);
}
input:focus, select:focus{
    outline: none;
    border-color: #8E1300;
    transform: translateY(-2px);
    transition: var(--transition);
}
input::placeholder{
    color: #999;
    font-size: 14px;
    font-family: var(--body-font);
}

.password-wrap{
    position: relative;
    flex: 1;
}
.password-wrap input{
    width: 100%;
    padding-right: 40px;
}
.toggle-eye{
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    z-index: 2;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.toggle-eye .eye-off-icon{
    display: none;
}
.toggle-eye.showing .eye-icon{
    display: none;
}
.toggle-eye.showing .eye-off-icon{
    display: block;
}
.toggle-eye:hover{
    color: #8E1300;
}

.checkbox-row{
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #555;
    margin: 20px 0;
}
.checkbox-row input{
    width: auto;
    flex-shrink: 0;
}
.checkbox-row a{
    color: #8E1300;
}

.submit-btn{
    width: 100%;
    background: #8E1300;
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-weight: 500;
    cursor: pointer;
    font-family: var(--body-font);
}
.submit-btn:hover{
    background: #6e0f00;
}

.switch-note{
    text-align: center;
    font-size: 13px;
    color: #666;
    margin-top: 18px;
}
.switch-note a{
    color: #8E1300;
    font-weight: 600;
}

.auth-divider{
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    color: #999;
    font-size: 12.5px;
}
.auth-divider::before,
.auth-divider::after{
    content: "";
    flex: 1;
    height: 1px;
    background: #e6e6ea;
}

.google-auth-btn{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #fff;
    color: #3c4043;
    border: 1px solid #dadce0;
    padding: 12px 14px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    font-family: var(--body-font);
    cursor: pointer;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}
.google-auth-btn:hover{
    background: #f7f7f8;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.google-auth-btn:disabled{
    opacity: 0.7;
    cursor: default;
}

.google-note{
    text-align: center;
    font-size: 12px;
    color: #8a8a95;
    margin: 10px 0 0;
}