/* ============================================
   Fator K — Auth (dark theme, alinhado ao cycle.css)
   ============================================ */

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

.auth-shell {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 72px);
}

.auth-hero {
    position: relative;
    min-height: 32vh;
    background-color: var(--bg-base);
    background-image: url('/images/auth-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    padding: 28px 24px;
    border-bottom: 1px solid var(--border);
}

.auth-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13, 17, 23, 0.45) 0%, rgba(13, 17, 23, 0.88) 100%);
}

.auth-hero-brand {
    position: relative;
    z-index: 1;
    max-width: 420px;
}

.auth-brand-mark {
    display: inline-block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

.auth-brand-mark span {
    color: var(--blue);
}

.auth-hero-brand p {
    margin-top: 8px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.auth-panel {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 28px 20px 48px;
    background: var(--bg-base);
}

.auth-card {
    width: 100%;
    max-width: 440px;
    margin-top: 8px;
}

.auth-card-wide {
    max-width: 560px;
}

.auth-card-header {
    margin-bottom: 8px;
}

.auth-card-sub {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.auth-switch {
    margin-top: 12px;
    font-size: 0.92rem;
    color: var(--text-muted);
}

.auth-switch a,
.auth-link {
    color: var(--blue);
    font-weight: 600;
    text-decoration: none;
}

.auth-switch a:hover,
.auth-link:hover {
    text-decoration: underline;
}

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

.auth-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.auth-field-wide {
    grid-column: 1 / -1;
}

.auth-field-error {
    display: block;
    margin-top: 4px;
    color: var(--red);
    font-size: 0.8rem;
    min-height: 1em;
}

.auth-hint {
    display: block;
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
}

.auth-check input {
    width: 16px;
    height: 16px;
    accent-color: var(--blue);
}

.auth-submit {
    margin-top: 4px;
    width: 100%;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0 14px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.auth-google-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #fff;
    color: #3c4043;
    border: 1px solid #dadce0;
    text-decoration: none;
    box-shadow: none;
    transition: background 0.15s, box-shadow 0.15s, transform 0.15s;
}

.auth-google-btn:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    color: #202124;
}

.auth-google-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.auth-alert:empty {
    display: none;
}

.auth-alert ul {
    margin: 0;
    padding-left: 18px;
}

@media (min-width: 641px) {
    .auth-form-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1025px) {
    .auth-shell {
        flex-direction: row;
        align-items: stretch;
        min-height: calc(100vh - 72px);
    }

    .auth-hero {
        flex: 1 1 52%;
        min-height: auto;
        align-items: flex-end;
        padding: 48px;
        border-bottom: none;
        border-right: 1px solid var(--border);
        background-attachment: fixed;
    }

    .auth-brand-mark {
        font-size: 2.4rem;
    }

    .auth-hero-brand p {
        font-size: 1.05rem;
        max-width: 360px;
    }

    .auth-panel {
        flex: 1 1 48%;
        align-items: center;
        padding: 40px;
    }

    .auth-card {
        max-width: 460px;
    }

    .auth-card-wide {
        max-width: 560px;
    }
}

@media (max-width: 640px) {
    .auth-hero {
        min-height: 26vh;
        padding: 20px 16px;
    }

    .auth-brand-mark {
        font-size: 1.45rem;
    }

    .auth-panel {
        padding: 20px 16px 32px;
    }

    .auth-row {
        flex-direction: column;
        align-items: flex-start;
    }
}
