/**
 * WooHUB — telas de autenticação (login, registro, senha)
 */

.wh-auth-body {
    min-height: 100vh;
    margin: 0;
    font-family: var(--wh-font, 'Inter', ui-sans-serif, system-ui, sans-serif);
    background: #0f172a;
    color: var(--wh-text, #0f172a);
}

.wh-auth-shell {
    display: flex;
    min-height: 100vh;
}

.wh-auth-hero {
    display: none;
    flex: 0 0 44%;
    max-width: 44%;
    position: relative;
    overflow: hidden;
    padding: 3rem;
    color: #f8fafc;
    background: linear-gradient(
        135deg,
        #020617 0%,
        #0f172a 28%,
        #134e4a 62%,
        #0d9488 100%
    );
}

@media (min-width: 992px) {
    .wh-auth-hero {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
}

.wh-auth-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(20, 184, 166, 0.22), transparent 42%),
        radial-gradient(circle at 80% 70%, rgba(13, 148, 136, 0.18), transparent 38%);
    pointer-events: none;
}

.wh-auth-hero__content {
    position: relative;
    z-index: 1;
}

.wh-auth-hero__logo {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
    text-decoration: none !important;
}

.wh-auth-hero__logo b {
    color: #5eead4;
}

.wh-auth-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 2rem 0 0;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #99f6e4;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(153, 246, 228, 0.22);
}

.wh-auth-hero__eyebrow i {
    font-size: 0.7rem;
    opacity: 0.9;
}

.wh-auth-hero__title {
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.03em;
    margin: 1.15rem 0 0.85rem;
    max-width: 14ch;
}

.wh-auth-hero__accent {
    background: linear-gradient(90deg, #5eead4, #99f6e4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.wh-auth-hero__subtitle {
    font-size: 1rem;
    line-height: 1.65;
    color: rgba(226, 232, 240, 0.86);
    max-width: 38ch;
    margin: 0;
}

.wh-auth-hero__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.35rem 0 0;
    padding: 0;
    list-style: none;
}

.wh-auth-hero__pills li {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(248, 250, 252, 0.92);
    padding: 0.35rem 0.65rem;
    border-radius: 0.45rem;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.wh-auth-hero__features {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.85rem;
    margin-top: auto;
}

.wh-auth-hero__feature {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.875rem;
    color: rgba(226, 232, 240, 0.9);
}

.wh-auth-hero__feature i {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: #99f6e4;
    font-size: 0.85rem;
}

.wh-auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1.25rem;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.wh-auth-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border: 1px solid var(--wh-card-border, #e2e8f0);
    border-radius: 1.25rem;
    box-shadow:
        0 4px 6px rgba(15, 23, 42, 0.04),
        0 20px 40px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.wh-auth-card__mobile-logo {
    display: block;
    text-align: center;
    padding: 1.35rem 1.5rem 0;
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0f172a;
    text-decoration: none !important;
}

.wh-auth-hero__logo-wrap,
.wh-auth-card__mobile-logo.wh-brand-logo {
    display: inline-flex;
    margin-bottom: 0;
    padding: 0;
    font-size: inherit;
}

.wh-auth-card__mobile-logo.wh-brand-logo {
    display: none;
    justify-content: center;
    margin-bottom: 1.25rem;
}

@media (max-width: 991px) {
    .wh-auth-card__mobile-logo.wh-brand-logo {
        display: inline-flex;
    }
}

.wh-auth-card__mobile-logo b {
    color: var(--wh-primary, #0d9488);
}

@media (min-width: 992px) {
    .wh-auth-card__mobile-logo {
        display: none;
    }
}

.wh-auth-card__body {
    padding: 1.35rem 1.75rem 1.75rem;
}

.wh-auth-card__title {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
    margin: 0 0 0.25rem;
}

.wh-auth-card__subtitle {
    font-size: 0.875rem;
    color: var(--wh-text-muted, #64748b);
    margin: 0 0 1.35rem;
}

.wh-auth-field {
    margin-bottom: 1rem;
}

.wh-auth-field label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--wh-text-muted, #64748b);
    margin-bottom: 0.35rem;
}

.wh-auth-input-wrap {
    position: relative;
}

.wh-auth-input-wrap > i:first-child {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.9rem;
    pointer-events: none;
}

.wh-auth-input-wrap .wh-auth-toggle {
    position: absolute;
    right: 0.65rem;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #94a3b8;
    padding: 0.25rem;
    cursor: pointer;
    line-height: 1;
}

.wh-auth-input-wrap .wh-auth-toggle:hover {
    color: var(--wh-primary, #0d9488);
}

.wh-auth-input {
    width: 100%;
    height: 2.75rem;
    padding: 0 2.5rem 0 2.45rem;
    border: 1px solid var(--wh-input-border, #cbd5e1);
    border-radius: var(--wh-radius, 0.625rem);
    font-size: 0.9375rem;
    color: #0f172a;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wh-auth-input:focus {
    outline: none;
    border-color: var(--wh-primary, #0d9488);
    box-shadow: 0 0 0 3px var(--wh-primary-ring, rgba(13, 148, 136, 0.35));
}

.wh-auth-input.is-invalid {
    border-color: var(--wh-danger, #ef4444);
}

.wh-auth-error {
    display: block;
    font-size: 0.8125rem;
    color: var(--wh-danger, #ef4444);
    margin-top: 0.35rem;
    font-weight: 500;
}

.wh-auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem 0.85rem;
    border-radius: var(--wh-radius, 0.625rem);
    font-size: 0.8125rem;
    margin-bottom: 1rem;
    line-height: 1.45;
}

.wh-auth-alert--warning {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #92400e;
}

.wh-auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0.25rem 0 1.25rem;
}

.wh-auth-check {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8125rem;
    color: var(--wh-text-muted, #64748b);
    cursor: pointer;
    user-select: none;
    margin: 0;
}

.wh-auth-check input {
    width: 1rem;
    height: 1rem;
    accent-color: var(--wh-primary, #0d9488);
}

.wh-auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    height: 2.75rem;
    border: none;
    border-radius: var(--wh-radius, 0.625rem);
    font-size: 0.9375rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.wh-auth-btn--primary {
    background: linear-gradient(135deg, var(--wh-primary-light, #14b8a6), var(--wh-primary, #0d9488));
    color: #fff;
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
}

.wh-auth-btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(13, 148, 136, 0.42);
}

.wh-auth-links {
    margin-top: 1.25rem;
    padding-top: 1.15rem;
    border-top: 1px solid var(--wh-card-border, #e2e8f0);
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    text-align: center;
}

.wh-auth-links a {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--wh-primary, #0d9488);
    text-decoration: none !important;
}

.wh-auth-links a:hover {
    color: var(--wh-primary-hover, #0f766e);
    text-decoration: underline !important;
}

.register-box,
.login-box {
    width: 100%;
    max-width: 420px;
    margin: 0 !important;
}

.register-box .card,
.login-box .card {
    border: none;
    box-shadow: none;
    background: transparent;
}

.register-box .card-body,
.login-box .card-body {
    padding: 0;
}

.register-box .card-header,
.login-box .card-header {
    display: none;
}

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

.wh-auth-footnote {
    margin: 1rem 0 0;
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--wh-text-muted, #64748b);
    text-align: center;
}

.wh-auth-field--checkbox {
    margin-top: 0.25rem;
}

.wh-auth-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--wh-text-muted, #64748b);
    cursor: pointer;
}

.wh-auth-checkbox input {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.wh-auth-checkbox a {
    color: var(--wh-teal, #0d9488);
    font-weight: 600;
}
