/**
 * HermesAuth Client - Custom Styles
 * Bootstrap 5 compatible with dark/light mode support
 */

/* ========================================
   Body & Layout
   ======================================== */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* ========================================
   Navbar Customization
   ======================================== */
.navbar-brand {
    font-size: 1.25rem;
}

#themeToggle {
    font-size: 1.1rem;
    padding: 0.5rem;
}

/* ========================================
   Cards
   ======================================== */
.card-header {
    font-weight: 500;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    font-weight: 500;
}

.btn-lg {
    padding: 0.75rem 2rem;
}

/* ========================================
   User Avatar Circle
   ======================================== */
.avatar-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   Dark Mode Adjustments
   ======================================== */
[data-bs-theme="dark"] .card {
    --bs-card-bg: var(--bs-body-bg);
}

[data-bs-theme="dark"] .bg-body-tertiary {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

[data-bs-theme="dark"] .alert-light {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--bs-body-color);
}

/* ========================================
   Responsive Adjustments
   ======================================== */
@media (max-width: 768px) {
    .display-5 {
        font-size: 1.75rem;
    }

    .lead {
        font-size: 1rem;
    }

    .card-body {
        padding: 1rem;
    }
}

/* ========================================
   Animation
   ======================================== */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

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

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

/* ========================================
   Dropdown Menu
   ======================================== */
.dropdown-menu {
    min-width: 200px;
}

.dropdown-item-text {
    padding: 0.25rem 1rem;
}

/* ========================================
   Table in Card
   ======================================== */
.table-borderless th,
.table-borderless td {
    padding: 0.5rem 0;
}

/* ========================================
   Icon Circles
   ======================================== */

/* ========================================
   Messages (Legacy Support)
   ======================================== */
#messages .message {
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border-radius: 0.375rem;
}

#messages .message.warn {
    background-color: var(--bs-danger);
    color: white;
}

#messages .message.success {
    background-color: var(--bs-success);
    color: white;
}

/* ========================================
   SSO Form Elements (Legacy Support)
   ======================================== */
.sso .inputs {
    margin: 1rem 0;
}

.sso label {
    font-weight: 500;
}

.sso .d-none {
    display: none !important;
}