/**
 * login.css — Área de autenticação GAPI Tecnologia & Sistemas
 * @author GAPI Tecnologia & Sistemas
 */

/* ─── ESTRUTURA PRINCIPAL ───────────────────────────────────────────────────── */

.auth-page {
    display: flex;
    min-height: calc(100vh - 73px - 46px);
}

/* ─── PAINEL ESQUERDO (visual tecnológico) ──────────────────────────────────── */

.auth-left {
    width: 46%;
    background: linear-gradient(150deg, #000812 0%, #001229 40%, #001f3f 70%, #003d7a 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 3rem;
}

.auth-left::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,133,27,.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,133,27,.06) 1px, transparent 1px);
    background-size: 56px 56px;
    pointer-events: none;
}

.auth-glow-a {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,133,27,.14) 0%, transparent 65%);
    top: -180px;
    right: -150px;
    pointer-events: none;
}

.auth-glow-b {
    position: absolute;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(0,100,200,.16) 0%, transparent 65%);
    bottom: -100px;
    left: -80px;
    pointer-events: none;
}

.auth-left-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.auth-logo {
    width: 190px;
    height: 190px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    box-shadow:
        0 0 0 4px rgba(255,133,27,.35),
        0 0 32px rgba(255,133,27,.18),
        0 8px 40px rgba(0,0,0,.5);
    transition: box-shadow .3s;
}

.auth-logo:hover {
    box-shadow:
        0 0 0 5px rgba(255,133,27,.55),
        0 0 48px rgba(255,133,27,.28),
        0 12px 48px rgba(0,0,0,.55);
}

.auth-company-name {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: .04em;
    margin-bottom: .3rem;
}

.auth-company-name .acn-gapi { color: var(--gapi-orange); }
.auth-company-name .acn-rest { color: rgba(255,255,255,.9); }

.auth-tagline {
    font-size: .8rem;
    letter-spacing: .04em;
    margin-bottom: 2.5rem;
}

.auth-tagline .atl-gapi { color: rgba(255,255,255,.75); font-weight: 800; }
.auth-tagline .atl-core { color: var(--gapi-orange);    font-weight: 800; }
.auth-tagline .atl-rest { color: rgba(255,255,255,.35); }

.auth-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    text-align: left;
}

.auth-features li {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .65rem .9rem;
    border-radius: 10px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.06);
    margin-bottom: .5rem;
    font-size: .84rem;
    color: rgba(255,255,255,.75);
    transition: background .2s;
}

.auth-features li:hover {
    background: rgba(255,133,27,.08);
    border-color: rgba(255,133,27,.15);
}

.auth-feat-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255,133,27,.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gapi-orange);
    font-size: .8rem;
    flex-shrink: 0;
}

.auth-platform-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(255,133,27,.12);
    border: 1px solid rgba(255,133,27,.25);
    color: var(--gapi-orange);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: .35rem .9rem;
    border-radius: 50px;
}

/* ─── PAINEL DIREITO (formulário) ───────────────────────────────────────────── */

.auth-right {
    flex: 1;
    background: #f4f6f9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 2rem;
    position: relative;
}

.auth-right::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,31,63,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,31,63,.025) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

.auth-form-wrap {
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 1;
}

.auth-form-header {
    margin-bottom: 2rem;
}

.auth-form-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--gapi-dark);
    letter-spacing: -.01em;
    margin-bottom: .35rem;
    line-height: 1.2;
}

.auth-form-subtitle {
    font-size: .88rem;
    color: #8a94a6;
    line-height: 1.5;
}

.auth-form-card {
    background: #fff;
    border-radius: 18px;
    padding: 2.25rem;
    box-shadow: 0 4px 32px rgba(0,0,0,.08), 0 1px 4px rgba(0,0,0,.04);
    border: 1px solid rgba(0,31,63,.07);
}

.auth-input-label {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: .45rem;
    display: block;
}

.auth-input-group {
    position: relative;
    margin-bottom: 1.25rem;
}

.auth-input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #b0b8c4;
    font-size: .9rem;
    pointer-events: none;
    z-index: 2;
}

.auth-input {
    width: 100%;
    height: 50px;
    border: 1.5px solid #e5e7eb;
    border-radius: 11px;
    padding: 0 1rem 0 2.75rem;
    font-size: .93rem;
    color: #1a1f2e;
    background: #fafbfc;
    transition: border-color .2s, box-shadow .2s, background .2s;
    outline: none;
}

.auth-input:focus {
    border-color: var(--gapi-orange);
    box-shadow: 0 0 0 3px rgba(255,133,27,.12);
    background: #fff;
}

.auth-input.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220,53,69,.1);
}

.auth-input-password {
    padding-right: 3rem;
}

.auth-pass-toggle {
    position: absolute;
    right: .75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: .25rem .4rem;
    color: #b0b8c4;
    cursor: pointer;
    transition: color .2s;
    z-index: 2;
}

.auth-pass-toggle:hover { color: var(--gapi-dark); }

.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    margin-top: -.25rem;
}

.auth-remember {
    display: flex;
    align-items: center;
    gap: .45rem;
    font-size: .82rem;
    color: #6b7280;
    cursor: pointer;
    user-select: none;
}

.auth-remember input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: var(--gapi-orange);
    cursor: pointer;
}

.auth-forgot-link {
    font-size: .82rem;
    color: var(--gapi-navy);
    text-decoration: none;
    font-weight: 600;
    transition: color .2s;
}

.auth-forgot-link:hover { color: var(--gapi-orange); }

.btn-auth-submit {
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, var(--gapi-orange) 0%, #e67616 100%);
    color: #fff;
    border: none;
    border-radius: 11px;
    font-size: .95rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    transition: transform .25s, box-shadow .25s;
    cursor: pointer;
}

.btn-auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255,133,27,.38);
    color: #fff;
}

.btn-auth-submit:active {
    transform: translateY(0);
}

.auth-back-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    margin-top: 1.5rem;
    font-size: .82rem;
    color: #8a94a6;
    text-decoration: none;
    transition: color .2s;
}

.auth-back-link:hover { color: var(--gapi-orange); }

.auth-back-link i { font-size: .75rem; }

/* ─── RESPONSIVO ────────────────────────────────────────────────────────────── */

@media (max-width: 991.98px) {
    .auth-left { display: none; }
    .auth-right { padding: 2rem 1.25rem; }
}

@media (max-width: 575.98px) {
    .auth-form-card { padding: 1.75rem 1.25rem; border-radius: 14px; }
    .auth-form-title { font-size: 1.45rem; }
}
