/* Layout base */
.sb-body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top left, #eef2ff 0, #f9fafb 40%, #0f172a 120%);
    color: #0f172a;
    min-height: 100vh;
}

.sb-page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.sb-container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.75rem;
}

/* Header / breadcrumb */
.sb-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(14px);
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.7));
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.sb-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0.5rem;
}

.sb-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #e5e7eb;
    gap: 0.6rem;
}

.sb-logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 0%, #fbbf24, #f97316 35%, #e11d48 70%);
    color: #0f172a;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.45);
}

.sb-logo-text {
    font-weight: 600;
    letter-spacing: 0.03em;
    font-size: 1.025rem;
}

.sb-nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.875rem;
    color: #cbd5f5;
}

.sb-nav-link {
    color: #e5e7eb;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.sb-nav-link:hover {
    opacity: 1;
    color: #ffffff;
}

.sb-nav-current {
    color: #9ca3af;
}

.sb-nav-separator {
    color: #6b7280;
}

/* Main layout */
.sb-main {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 3.5rem 0 3.75rem;
}

.sb-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 3rem;
    align-items: center;
}

/* Hero / text column */
.sb-hero {
    color: #0f172a;
}

.sb-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.08);
    color: #1d4ed8;
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}

.sb-title {
    font-size: clamp(2.1rem, 2.4vw, 2.7rem);
    line-height: 1.05;
    margin: 0 0 0.85rem;
    color: #020617;
}

.sb-subtitle {
    margin: 0 0 1.5rem;
    max-width: 30rem;
    color: #4b5563;
    font-size: 0.975rem;
}

.sb-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.55rem;
    color: #374151;
    font-size: 0.94rem;
}

.sb-features li {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.sb-features i {
    color: #22c55e;
    font-size: 0.95rem;
}

/* Card de login */
.sb-card {
    position: relative;
    background: rgba(15, 23, 42, 0.98);
    border-radius: 1.2rem;
    padding: 2.3rem 2.3rem 2.4rem;
    box-shadow:
        0 24px 60px rgba(15, 23, 42, 0.75),
        0 0 0 1px rgba(148, 163, 184, 0.15);
    color: #e5e7eb;
    overflow: hidden;
}

.sb-card::before {
    content: "";
    position: absolute;
    inset: -40%;
    background:
        radial-gradient(circle at 0 0, rgba(59, 130, 246, 0.28), transparent 55%),
        radial-gradient(circle at 100% 0, rgba(236, 72, 153, 0.28), transparent 55%);
    opacity: 0.55;
    pointer-events: none;
}

.sb-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 1));
    mix-blend-mode: multiply;
    pointer-events: none;
}

.sb-card > * {
    position: relative;
    z-index: 1;
}

.sb-card-animate {
    transform: translateY(16px) scale(0.99);
    opacity: 0;
    transition:
        opacity 0.6s ease-out,
        transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.3s ease-out;
}

.sb-card-animate.sb-card-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.sb-card-animate:hover {
    box-shadow:
        0 30px 80px rgba(15, 23, 42, 0.9),
        0 0 0 1px rgba(96, 165, 250, 0.4);
}

.sb-card-header {
    margin-bottom: 1.75rem;
}

.sb-card-title {
    margin: 0 0 0.35rem;
    font-size: 1.55rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.sb-card-subtitle {
    margin: 0;
    font-size: 0.9rem;
    color: #9ca3af;
}

/* Formulário */
.sb-form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.sb-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.sb-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #e5e7eb;
}

.sb-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.95) !important;
    border-radius: 0.8rem;
    border: 1px solid rgba(148, 163, 184, 0.55);
    padding: 0.25rem 0.85rem;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease,
        transform 0.12s ease-out;
}

.sb-input-wrapper:focus-within {
    border-color: rgba(96, 165, 250, 0.9);
    box-shadow:
        0 0 0 1px rgba(96, 165, 250, 0.5),
        0 14px 32px rgba(15, 23, 42, 0.8);
    background: rgba(15, 23, 42, 0.98) !important;
    transform: translateY(-1px);
}

.sb-input-icon {
    color: #6b7280;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    font-size: 0.95rem;
}

.sb-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent !important;
    background-color: transparent !important;
    color: #f9fafb;
    font-size: 0.925rem;
    padding: 0.55rem 0.25rem;
}

/* Evita fundo branco do autofill do navegador */
.sb-input:-webkit-autofill,
.sb-input:-webkit-autofill:hover,
.sb-input:-webkit-autofill:focus {
    -webkit-text-fill-color: #f9fafb;
    -webkit-box-shadow: 0 0 0 1000px rgba(15, 23, 42, 0.95) inset;
    box-shadow: 0 0 0 1000px rgba(15, 23, 42, 0.95) inset;
    transition: background-color 5000s ease-in-out 0s;
}

.sb-input::placeholder {
    color: #6b7280;
}

.sb-input-addon {
    border: none;
    outline: none;
    background: transparent;
    color: #6b7280;
    padding: 0 0.3rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: color 0.2s ease, transform 0.1s ease-out;
}

.sb-input-addon:hover {
    color: #e5e7eb;
    transform: scale(1.02);
}

.sb-form-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
}

.sb-form-row-between {
    justify-content: space-between;
}

.sb-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    user-select: none;
}

.sb-checkbox input {
    display: none;
}

.sb-checkbox-mark {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.9);
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.1s ease-out;
}

.sb-checkbox-label {
    color: #9ca3af;
}

.sb-checkbox input:checked + .sb-checkbox-mark {
    background: linear-gradient(to right, #6366f1, #ec4899);
    border-color: transparent;
    box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.7);
}

.sb-checkbox input:checked + .sb-checkbox-mark::after {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background-color: #f9fafb;
}

/* Botões */
.sb-btn-primary {
    position: relative;
    border: none;
    outline: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed, #ec4899);
    color: #f9fafb;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.85rem 1.2rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow:
        0 14px 40px rgba(88, 80, 236, 0.7),
        0 0 0 1px rgba(248, 250, 252, 0.08);
    transition:
        transform 0.14s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.18s ease-out,
        filter 0.18s ease-out;
}

.sb-btn-block {
    width: 100%;
}

.sb-btn-primary:hover {
    transform: translateY(-1px) scale(1.01);
    box-shadow:
        0 18px 50px rgba(88, 80, 236, 0.85),
        0 0 0 1px rgba(248, 250, 252, 0.14);
    filter: brightness(1.04);
}

.sb-btn-primary:active {
    transform: translateY(1px) scale(0.99);
    box-shadow:
        0 10px 28px rgba(88, 80, 236, 0.7),
        0 0 0 1px rgba(248, 250, 252, 0.1);
}

.sb-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    font-size: 0.8rem;
}

.sb-btn-outline {
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: transparent;
    color: #e5e7eb;
    font-weight: 500;
    padding: 0.7rem 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        transform 0.12s ease-out,
        box-shadow 0.16s ease-out;
}

.sb-btn-outline:hover {
    background: rgba(30, 64, 175, 0.55);
    border-color: rgba(96, 165, 250, 0.9);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.8);
    transform: translateY(-1px);
}

.sb-btn-social i {
    font-size: 0.95rem;
}

.sb-social-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    margin-top: 0.25rem;
}

/* Divider */
.sb-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
    color: #6b7280;
    font-size: 0.8rem;
}

.sb-divider::before,
.sb-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(107, 114, 128, 0.85));
}

.sb-divider::after {
    background: linear-gradient(to left, transparent, rgba(107, 114, 128, 0.85));
}

.sb-divider-text {
    white-space: nowrap;
}

/* Links */
.sb-link-primary {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 500;
}

.sb-link-primary:hover {
    color: #93c5fd;
}

.sb-link-muted {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.82rem;
}

.sb-link-muted:hover {
    color: #e5e7eb;
}

/* Footer */
.sb-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.98);
    color: #9ca3af;
    padding: 2rem 0 1.4rem;
}

.sb-footer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    padding-bottom: 1.5rem;
}

.sb-footer-title {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #e5e7eb;
}

.sb-footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.8rem;
    display: grid;
    gap: 0.3rem;
}

.sb-footer-text {
    margin: 0 0 0.6rem;
    font-size: 0.8rem;
}

.sb-footer-bottom {
    border-top: 1px solid rgba(31, 41, 55, 1);
    padding-top: 0.9rem;
}

.sb-footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.sb-footer-copy {
    margin: 0;
    font-size: 0.78rem;
    color: #6b7280;
}

.sb-footer-links {
    display: flex;
    gap: 1rem;
}

/* Botão Google */
.sb-btn-google {
    background: #ffffff;
    color: #111827;
    border-color: #e5e7eb;
}

.sb-btn-google i {
    color: #ea4335;
}

.sb-btn-google:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.85);
}

/* Responsividade */
@media (max-width: 960px) {
    .sb-main {
        align-items: stretch;
        padding: 2.5rem 0 3rem;
    }

    .sb-main-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.4rem;
    }

    .sb-card {
        padding: 2rem 1.7rem 2.1rem;
    }

    .sb-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .sb-header-inner {
        padding-inline: 0;
    }

    .sb-container {
        padding-inline: 1.25rem;
    }

    .sb-footer-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .sb-footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .sb-card {
        padding: 1.75rem 1.4rem 1.9rem;
        border-radius: 1rem;
    }

    .sb-header-inner {
        padding-block: 0.8rem;
    }

    .sb-footer {
        padding-top: 1.6rem;
    }
}

/* Alertas de validação */
.sb-alert {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
}
.sb-alert-danger {
    background: rgba(220, 38, 38, 0.12);
    color: #b91c1c;
    border: 1px solid rgba(220, 38, 38, 0.3);
}
