:root{
    --bg:#f3f3f3;
    --card:#ffffff;
    --text:#0a1838;
    --muted:#5c6a85;
    --border:#d8dee8;
    --border-strong:#c9d1dd;
    --primary:#07173f;
    --primary-hover:#0b214f;
    --secondary:#eef2f6;
    --secondary-text:#0b1a3a;
    --danger:#b42318;
    --success:#067647;
    --shadow:0 20px 60px rgba(15, 23, 42, .10);
    --radius-card:20px;
    --radius-input:22px;
    --radius-btn:22px;
}

*{
    box-sizing:border-box;
}

html,body{
    margin:0;
    padding:0;
    width:100%;
    min-height:100%;
    font-family:Arial, Helvetica, sans-serif;
    color:var(--text);
    background:var(--bg);
}

.auth-body{
    min-height:100vh;
}

.auth-bg {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px 60px;
    position: relative;
    overflow: hidden;
    background: url(../img/background_fuabc.png);
    background-size: cover;
    background-position: bottom;
    background-repeat: no-repeat;
}

.auth-bg::after{
    width:180px;
    height:180px;
    left:0;
    bottom:0;
    right:auto;
    background:
        linear-gradient(135deg, transparent 42%, rgba(0,0,0,.06) 43%, rgba(0,0,0,.06) 56%, transparent 57%),
        linear-gradient(110deg, transparent 52%, rgba(0,0,0,.05) 53%, rgba(0,0,0,.05) 70%, transparent 71%);
    opacity:.32;
}

.auth-shell{
    width:100%;
    max-width: 480px;
    position:relative;
    z-index:2;
}

.auth-card{
    width:100%;
    background:var(--card);
    border:1px solid rgba(10, 24, 56, 0.08);
    border-radius:var(--radius-card);
    padding:28px 24px 26px;
}

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

.auth-title{
    margin:0;
    color:#595959;
    font-size: 23px;
    line-height: 1;
    font-weight:800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-brand{
    margin-top:10px;
    color:#ff1a1a;
    font-size:18px;
    font-weight:800;
    letter-spacing:.45em;
}

.auth-subtitle{
    margin:20px 0 0;
    font-size:16px;
    line-height:1.45;
    color:#3a4b6c;
}

.auth-secondary-btn{
    width:100%;
    height: 45px;
    border:none;
    border-radius: 10px;
    background:#eef2f6;
    color:var(--secondary-text);
    font-size: 15px;
    font-weight: 600;
    cursor:pointer;
    transition:.18s ease;
    box-shadow:inset 0 0 0 1px rgba(7, 23, 63, 0.06);
    margin-bottom: 15px;
}

.auth-secondary-btn:hover{
    transform:translateY(-1px);
    background:#e8edf3;
}

.auth-divider{
    height:1px;
    background:#d9e0e8;
    margin:26px 0 22px;
}

.auth-panel{
    overflow:hidden;
    transition:max-height .35s ease, opacity .25s ease, transform .25s ease, margin-top .25s ease;
}

.auth-panel.is-hidden{
    max-height:0;
    opacity:0;
    transform:translateY(-8px);
    pointer-events:none;
}

.auth-panel.is-visible{
    max-height:650px;
    opacity:1;
    transform:translateY(0);
    pointer-events:auto;
    margin-bottom: 15px;
}

.auth-form{
    display:flex;
    flex-direction:column;
    gap:18px;
}

.auth-label{
    font-size: 14px;
    font-weight: 600;
    color:var(--text);
    margin-bottom:-8px;
}

.input-wrap{
    width:100%;
}

.auth-input{
    width:100%;
    height: 45px;
    padding:0 18px;
    border: 2px solid #e6e6e6;
    border-radius: 10px;
    background:#fff;
    font-size:16px;
    color:#111827;
    outline:none;
    transition:border-color .18s ease, box-shadow .18s ease;
}

.auth-input:focus{
    border-color:#b8c4d6;
    box-shadow:0 0 0 4px rgba(7, 23, 63, 0.06);
}

.auth-input::placeholder{
    color:#8a94a8;
}

.auth-help{
    margin:-4px 0 0;
    font-size:15px;
    line-height:1.5;
    text-align:center;
    color:#60708e;
}

.auth-primary-btn{
    width:100%;
    height: 50px;
    border:none;
    border-radius: 10px;
    background:var(--primary);
    color:#fff;
    font-size: 15px;
    font-weight: 600;
    cursor:pointer;
    transition:.18s ease;
    margin-top:2px;
}

.auth-primary-btn:hover{
    background:#1a2234;
    transform:translateY(-1px);
}

.alert{
    border-radius:16px;
    padding:12px 14px;
    font-size:14px;
    line-height:1.45;
    margin-bottom:16px;
}

.alert-error{
    background:#fef3f2;
    color:var(--danger);
    border:1px solid #fecdca;
}

.alert-success{
    background:#ecfdf3;
    color:var(--success);
    border:1px solid #abefc6;
}

.auth-footer {
    text-align: center;
    color: #667085;
    font-size: 13px;
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: center;
}

@media (max-width: 640px){
    .auth-bg{
        padding:18px 12px 36px;
    }

    .auth-card{
        padding:22px 16px 20px;
        border-radius:24px;
    }

    .auth-title{
        font-size:26px;
        letter-spacing:.03em;
    }

    .auth-brand{
        font-size:16px;
        letter-spacing:.35em;
    }

    .auth-subtitle{
        font-size:15px;
    }

    .auth-secondary-btn,
    .auth-primary-btn,
    .auth-input{
        height:54px;
        border-radius:18px;
    }
}
.back {
    width: 100px;
    border-radius: 10px;
    background: linear-gradient(135deg, #ffffff, #efefef);
    box-shadow: 0 10px 18px rgba(247, 247, 247, .25);
    border: 1px solid #e7e7e7;
    padding: 5px 10px;
    position: absolute;
    text-align: center;
    top: 20px;
    left: 20px;
    transition: .3s ease;
    cursor: pointer;
    text-decoration: none;
    color: #111827;
    z-index: 5;
}

.back:hover{
    top: 18px;
    background: linear-gradient(135deg, #fbf6f6, #efefef);
}

.voltar{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-family: Calibri, Arial, Helvetica, sans-serif;
}

.voltar svg{
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.auth-secondary-link,
.auth-primary-link{
    width: 100%;
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 14px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: .18s ease;
}

.auth-primary-link{
    background: var(--primary);
    color: #fff;
}

.auth-primary-link:hover{
    background: #1a2234;
    transform: translateY(-1px);
}

.auth-secondary-link{
    background: #eef2f6;
    color: var(--secondary-text);
    box-shadow: inset 0 0 0 1px rgba(7, 23, 63, 0.06);
}

.auth-secondary-link:hover{
    background: #e8edf3;
    transform: translateY(-1px);
}

@media (max-width: 640px){
    .back{
        top: 12px;
        left: 12px;
        width: 92px;
    }

    .back:hover{
        top: 10px;
    }

    .auth-title{
        font-size: 22px;
        line-height: 1.15;
    }

    .auth-title img{
        width: 44px;
    }

    .auth-secondary-link,
    .auth-primary-link{
        min-height: 54px;
        border-radius: 18px;
    }
}
