@import url('../brand/ui/colors.css');
@import url('../brand/ui/typography.css');

:root{
    --green:var(--oridesk-orange);
    --green-dark:var(--oridesk-graphite);
    --green-deep:#120A06;
    --text:var(--oridesk-dark);
    --muted:var(--oridesk-gray);
    --border:var(--oridesk-border);
    --bg:var(--oridesk-cream);
    --surface:var(--oridesk-white);
    --shadow:0 22px 60px rgba(31,19,13,.14);
}

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

html,
body{
    width:100%;
    min-height:100%;
}

body{
    font-family:'Inter',sans-serif;
    background:var(--bg);
    color:var(--text);
}

.auth-page{
    min-height:100vh;
    display:grid;
    grid-template-columns:minmax(0,1fr) 440px;
    background:
            radial-gradient(circle at 10% 15%, rgba(245,124,0,.14), transparent 32%),
            radial-gradient(circle at 18% 18%,rgba(245,124,0,.18),transparent 30%),radial-gradient(circle at 80% 26%,rgba(0,137,123,.14),transparent 26%),linear-gradient(135deg,#fff7ea 0%,#f4e8d3 55%,#1f130d 130%);
}

/* LEFT VISUAL */

.auth-visual{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:56px;
    position:relative;
    overflow:hidden;
}

.auth-visual::before{
    content:'';
    position:absolute;
    width:520px;
    height:520px;
    left:-220px;
    bottom:-160px;
    background:rgba(245,124,0,.12);
    border-radius:50%;
}

.auth-visual::after{
    content:'';
    position:absolute;
    width:360px;
    height:360px;
    right:6%;
    top:14%;
    background:rgba(0,137,123,.10);
    border-radius:44% 56% 60% 40%;
    transform:rotate(25deg);
}

.brand-block{
    width:100%;
    max-width:560px;
    text-align:center;
    position:relative;
    z-index:2;
}

.brand-logo{
    width:360px;
    max-width:100%;
    margin-bottom:34px;
}

.brand-block h1{
    font-size:42px;
    font-weight:900;
    line-height:1.1;
    margin-bottom:14px;
    color:var(--text);
}

.brand-block p{
    color:var(--muted);
    font-size:17px;
    line-height:1.75;
    max-width:520px;
    margin:0 auto 30px;
}

.brand-features{
    display:flex;
    flex-direction:column;
    gap:12px;
    max-width:420px;
    margin:0 auto;
}

.brand-features div{
    display:flex;
    align-items:center;
    gap:10px;
    justify-content:center;
    font-weight:700;
    color:#334155;
}

.brand-features span{
    width:10px;
    height:10px;
    border-radius:999px;
    background:var(--green);
    box-shadow:0 0 0 6px rgba(245,124,0,.12);
}

/* RIGHT FORM */

.auth-form-area{
    min-height:100vh;
    background:#ffffff;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    padding:40px;
    box-shadow:-30px 0 70px rgba(15,23,42,.08);
    position:relative;
    z-index:3;
}

.login-card{
    width:100%;
    max-width:340px;
    background:#ffffff;
}

.mobile-logo{
    display:none;
    text-align:center;
    margin-bottom:28px;
}

.mobile-logo img{
    width:220px;
}

.login-header{
    text-align:center;
    margin-bottom:28px;
}

.login-header h2{
    font-size:24px;
    font-weight:900;
    margin-bottom:8px;
    color:#111827;
}

.login-header p{
    color:var(--muted);
    font-size:14px;
}

.alert-error{
    background:rgba(239,68,68,.10);
    border:1px solid rgba(239,68,68,.22);
    color:#dc2626;
    padding:13px 14px;
    border-radius:12px;
    font-size:13px;
    font-weight:800;
    margin-bottom:18px;
}

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

.form-group label{
    display:block;
    font-size:13px;
    color:#334155;
    font-weight:800;
    margin-bottom:8px;
}

.form-group input{
    width:100%;
    height:48px;
    border:1px solid var(--border);
    border-radius:10px;
    padding:0 14px;
    font-size:14px;
    outline:none;
    color:var(--text);
    background:#ffffff;
    transition:.2s ease;
}

.form-group input:focus{
    border-color:var(--green);
    box-shadow:0 0 0 4px rgba(245,124,0,.12);
}

.login-options{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin:4px 0 18px;
    font-size:12px;
}

.login-options label{
    display:flex;
    align-items:center;
    gap:7px;
    color:var(--muted);
    font-weight:600;
}

.login-options input{
    accent-color:var(--green);
}

.login-options a{
    color:var(--green);
    text-decoration:none;
    font-weight:800;
}

.btn-login{
    width:100%;
    height:48px;
    border:none;
    border-radius:10px;
    background:linear-gradient(135deg,var(--oridesk-orange),var(--oridesk-gold));
    color:#ffffff;
    font-size:14px;
    font-weight:900;
    cursor:pointer;
    transition:.2s ease;
    box-shadow:0 14px 28px rgba(245,124,0,.24);
}

.btn-login:hover{
    transform:translateY(-1px);
    box-shadow:0 18px 35px rgba(15,143,58,.28);
}

.login-footer{
    margin-top:24px;
    text-align:center;
    color:#94a3b8;
    font-size:12px;
    line-height:1.6;
}

.auth-copy{
    position:absolute;
    bottom:26px;
    color:#94a3b8;
    font-size:12px;
    text-align:center;
}

/* RESPONSIVE */

@media(max-width:980px){

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

    .auth-visual{
        display:none;
    }

    .auth-form-area{
        box-shadow:none;
        background:
                radial-gradient(circle at top, rgba(245,124,0,.12), transparent 35%),
                #ffffff;
    }

    .mobile-logo{
        display:block;
    }
}

@media(max-width:480px){

    .auth-form-area{
        padding:28px;
    }

    .auth-copy{
        position:static;
        margin-top:26px;
    }
}

.auth-visual::before{background-image:linear-gradient(135deg,rgba(31,19,13,.08) 25%,transparent 25%),linear-gradient(225deg,rgba(245,124,0,.10) 25%,transparent 25%);background-size:38px 38px;border-radius:32px;transform:rotate(-12deg);}
.brand-logo,.mobile-logo img{border-radius:22px;box-shadow:0 24px 60px rgba(31,19,13,.16);}
.brand-block h1{background:linear-gradient(135deg,var(--oridesk-graphite),var(--oridesk-orange));-webkit-background-clip:text;background-clip:text;color:transparent;}
.brand-features span{background:var(--oridesk-teal);box-shadow:0 0 0 6px rgba(0,137,123,.12);}
.auth-copy{color:rgba(31,19,13,.58);}

.alert-success,.alert-info{padding:14px 16px;border-radius:14px;margin-bottom:18px;font-size:14px;line-height:1.45}.alert-success{background:#e8f5e9;color:#1b5e20;border:1px solid #a5d6a7}.alert-info{background:#e0f2f1;color:#004d40;border:1px solid #80cbc4}.alert-info small{word-break:break-all}
