/* GLOBAL AUTH THEME */
/* This targets the main container of all Identity pages */
.identity-page-container {
    min-height: 85vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column; /* allow header spacing without breaking centering */
    /* closer to Home page: soft green with subtle depth */
    background: radial-gradient(1200px circle at 20% 10%, #d1fae5 0%, #bbf7d0 45%, #a7f3d0 100%);
    padding: 1.5rem;
}

/* Forces all Identity cards to look like the Blocker Console */
.identity-card {
    background: rgba(255, 255, 255, 0.92) !important;
    border-radius: 24px !important;
    box-shadow: 0 18px 50px rgba(0,0,0,0.12) !important;
    border: 1px solid rgba(220, 252, 231, 0.9) !important;
    padding: 40px !important;
    width: 100%;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Home/marketing hero helpers (used by Home + Terms/Privacy) */
.animate-fade-in {
    animation: fadeIn 1.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tracking-tight {
    letter-spacing: -0.05em;
}

/* Brand header helpers (used on Terms/Privacy and Identity pages) */
.brand-name {
    font-weight: 800;
    letter-spacing: -0.05em; /* match Home's tracking-tight */
    font-size: clamp(2rem, 6vw, 3.25rem);
    color: #111827;
    margin-bottom: .25rem;
}

.version-badge {
    display: inline-block;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    color: #ffffff;
    background: #111827;
    border: 0;
}

/* Optional helper for the big circle logo used on the home page */
.brand-logo-ring {
    width: 120px;
    height: 120px;
    border-radius: 999px;
    background: #ffffff;
    border: 4px solid #198754;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer {
    font-size: 0.9rem;
    color: #6b7280;
}

.footer a {
    color: #198754;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Global Button Style */
.identity-page-container btn-primary,
.identity-page-container .btn-success {
    background-color: #198754 !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 10px 25px !important;
}

/* Utility: add a bit of space under the header for select pages */
.header-spacing {
    padding-top: 1.5rem;    /* space under header */
    margin-top: 0;          /* avoid pushing content out of the viewport */
}

/* Navbar improvements */
.navbar .navbar-brand {
    font-size: 1.05rem;
}

/* Make certain buttons full width on very small viewports when requested */
.btn-mobile-fullwidth {
    /* default: do not force width on larger screens */
    width: auto;
}

@media (max-width: 576px) {
    .navbar .navbar-brand {
        font-size: 1rem;
    }

    .header-spacing {
        padding-top: 1rem;
    }

    .glass-card {
        padding: 1.5rem !important;
    }

    .identity-card {
        padding: 1.5rem !important;
    }

    .btn-modern {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .btn-mobile-fullwidth {
        width: 100% !important;
        display: block;
    }
}
