@import url('brand.css');

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', system-ui, sans-serif; }

body.auth-page {
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--systech-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-x: hidden;
    overflow-y: auto;
}

.auth-bg {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(var(--systech-primary-rgb), 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(var(--systech-primary-rgb), 0.08) 0%, transparent 40%),
        var(--systech-bg);
    z-index: 0;
}

.auth-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 320px;
}

.auth-card {
    width: 100%;
    background: var(--systech-surface);
    border: 1px solid var(--systech-border);
    border-radius: 20px;
    padding: 32px 28px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.auth-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    overflow: visible;
}

.auth-logo .auth-icon {
    width: 96px;
    height: 96px;
    object-fit: contain;
}

.auth-sub {
    text-align: center;
    color: var(--systech-muted);
    font-size: 14px;
    margin: 0 0 10px;
}

.auth-plataformas {
    text-align: center;
    color: #9eb0cc;
    font-size: 13px;
    line-height: 1.45;
    margin: 0 0 22px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(var(--systech-primary-rgb), 0.08);
    border: 1px solid rgba(var(--systech-primary-rgb), 0.18);
}

.auth-plataformas strong {
    color: var(--systech-primary-light);
    font-weight: 600;
}

.auth-form label {
    display: block;
    font-size: 13px;
    color: #aaa;
    margin-bottom: 6px;
    margin-top: 14px;
}

.auth-form label:first-child { margin-top: 0; }

.auth-hint {
    color: #9eb0cc;
    font-size: 13px;
    line-height: 1.45;
    margin-bottom: 12px;
    text-align: center;
}

.auth-form input {
    width: 100%;
    padding: 13px 15px;
    background: var(--systech-navy);
    border: 1px solid var(--systech-border);
    border-radius: 10px;
    color: #fff;
    font-size: 15px;
    outline: none;
}

.auth-form input:focus {
    border-color: rgba(var(--systech-primary-rgb), 0.55);
}

.senha-wrap {
    position: relative;
}

.senha-wrap input { padding-right: 44px; }

.btn-eye {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    opacity: 0.6;
}

.btn-entrar {
    width: 100%;
    margin-top: 22px;
    padding: 14px;
    background: var(--systech-gradient);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}

.btn-entrar:hover { filter: brightness(1.06); }
.btn-entrar:disabled { opacity: 0.5; cursor: wait; }

.btn-link {
    display: block;
    width: 100%;
    margin-top: 14px;
    background: none;
    border: none;
    color: var(--systech-muted);
    font-size: 13px;
    cursor: pointer;
    text-align: center;
}

.btn-link strong { color: var(--systech-primary); }

.auth-alerta {
    background: rgba(var(--systech-primary-rgb), 0.1);
    border: 1px solid rgba(var(--systech-primary-rgb), 0.3);
    border-radius: 10px;
    padding: 12px;
    font-size: 12px;
    color: #ccc;
    margin-bottom: 16px;
    line-height: 1.5;
}

.auth-erro {
    background: rgba(255, 59, 48, 0.15);
    border: 1px solid rgba(255, 59, 48, 0.4);
    color: #ff6b6b;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 14px;
}

.auth-ok {
    background: rgba(52, 199, 89, 0.15);
    border: 1px solid rgba(52, 199, 89, 0.4);
    color: #34c759;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 14px;
}

.auth-footer {
    text-align: center;
    color: #555;
    font-size: 11px;
    margin-top: 20px;
}

@media (max-width: 480px) {
    body.auth-page {
        padding: max(14px, env(safe-area-inset-top)) 12px max(20px, env(safe-area-inset-bottom));
    }

    .auth-card {
        padding: 24px 18px;
        border-radius: 16px;
    }

    .auth-logo {
        margin-bottom: 16px;
    }

    .auth-form input {
        font-size: 16px;
    }

    .btn-eye {
        min-width: 44px;
        min-height: 44px;
        right: 4px;
    }

    .btn-link {
        min-height: 44px;
        padding: 8px 4px;
    }

    .btn-entrar {
        min-height: 48px;
    }
}
