﻿@import url('gv-colour-theme.css');

/* ============================================
   Identity Pages - Modern Styling
   Consistent with GameVote app design
   ============================================ */

body {
    height: 100vh;
    background: #f5f7fb;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.main-content {
    height: 100%;
    margin-top: 80px;
    display: flex;
    justify-content: center;
    padding: 2rem 1rem;
}

.gv-headerlogo {
    width: 40px;
    height: 40px;
}

/* ============================================
   Navbar
   ============================================ */
.navbar {
    background: #ffffff !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid #e9ecef;
}

/* Mobile menu button — matches main app hamburger style */
.identity-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 32px;
    padding: 0;
    border-color: #6c757d;
    color: #6c757d;
    flex-shrink: 0;
}

.identity-menu-btn .navbar-toggler-icon {
    width: 1em;
    height: 1em;
}

.identity-menu-btn:hover {
    background: #5c636a;
    border-color: #565e64;
    color: #fff;
}

/* ============================================
   Buttons
   ============================================ */
.btn-primary {
    color: #fff;
    background-color: #0C2D7A !important;
    border-color: #0C2D7A !important;
    border-radius: 10px;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.2s ease;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #0a2466 !important;
    border-color: #0a2466 !important;
    box-shadow: 0 4px 12px rgba(12, 45, 122, 0.25);
    transform: translateY(-1px);
}

.btn-lg {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
}

/* ============================================
   Auth Card (Login, ForgotPassword, Reset)
   ============================================ */
.auth-wrapper {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
}

.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo img {
    max-height: 48px;
    width: auto;
}

.auth-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    padding: 2rem;
    border: 1px solid #e9ecef;
}

.auth-card h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #242424;
    margin-bottom: 0.25rem;
}

.auth-card h2 {
    font-size: 0.95rem;
    font-weight: 400;
    color: #6E6E6E;
    margin-bottom: 1.5rem;
}

.auth-card hr {
    display: none;
}

.auth-card .form-floating {
    margin-bottom: 1rem;
}

.auth-card .form-control {
    border-radius: 10px;
    border: 1px solid #dee2e6;
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-card .form-control:focus {
    border-color: #0C2D7A;
    box-shadow: 0 0 0 3px rgba(12, 45, 122, 0.1);
}

.auth-card .form-floating label {
    color: #6E6E6E;
}

.auth-card .form-check {
    padding-top: 0.25rem;
}

.auth-card .form-check-input:checked {
    background-color: #0C2D7A;
    border-color: #0C2D7A;
}

.auth-card .text-center a {
    color: #0C2D7A;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.auth-card .text-center a:hover {
    text-decoration: underline;
    color: #0a2466;
}

.auth-card .text-center p {
    margin-bottom: 0.5rem;
}

/* ============================================
   Info/Status cards (Lockout, Confirm, etc.)
   ============================================ */
.auth-status-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    padding: 2.5rem 2rem;
    border: 1px solid #e9ecef;
    text-align: center;
}

.auth-status-card h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.auth-status-card p {
    font-size: 0.95rem;
    color: #495057;
    margin-bottom: 0;
}

.auth-status-card a {
    color: #0C2D7A;
    font-weight: 600;
    text-decoration: none;
}

.auth-status-card a:hover {
    text-decoration: underline;
}

.auth-status-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.auth-status-icon.success {
    color: #1BB76D;
}

.auth-status-icon.danger {
    color: #E31A1A;
}

.auth-status-icon.warning {
    color: #F59E0B;
}

/* ============================================
   Account Management Layout
   ============================================ */
.manage-wrapper {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.manage-header {
    margin-bottom: 1.5rem;
}

.manage-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #242424;
}

.manage-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid #e9ecef;
    overflow: hidden;
}

.manage-nav-section {
    border-bottom: 1px solid #e9ecef;
    padding: 0.5rem;
}

.manage-content-section {
    padding: 1.5rem 2rem;
}

.manage-content-section h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #242424;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f2f5;
}

.manage-content-section h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #242424;
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
}

.manage-content-section .form-floating {
    margin-bottom: 1rem;
}

.manage-content-section .form-control {
    border-radius: 10px;
    border: 1px solid #dee2e6;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.manage-content-section .form-control:focus {
    border-color: #0C2D7A;
    box-shadow: 0 0 0 3px rgba(12, 45, 122, 0.1);
}

/* Management Nav Pills - Modern Style */
.nav-pills .nav-link {
    color: #495057 !important;
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 10px;
    padding: 0.6rem 1rem;
    transition: all 0.2s ease;
}

.nav-pills .nav-link:hover {
    background: #f0f2f5;
    color: #0C2D7A !important;
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    color: #ffffff !important;
    background-color: #0C2D7A !important;
    font-weight: 600;
}

/* Alert Styling */
.alert {
    border-radius: 10px;
    font-size: 0.9rem;
    border: none;
}

.alert-success {
    background: #e8f8ef;
    color: #155724;
}

.alert-danger {
    background: #fef2f2;
    color: #721c24;
}

.alert-warning {
    background: #fff8e1;
    color: #856404;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: #ffffff !important;
    border-top: 1px solid #e9ecef;
    font-size: 0.85rem;
    color: #6E6E6E;
}

.footer a {
    color: #0C2D7A;
    text-decoration: none;
    margin-left: 0.75rem;
}

.footer a:hover {
    text-decoration: underline;
}

/* ============================================
   Responsive - Mobile
   ============================================ */
@media (max-width: 768px) {
    .main-content {
        margin-top: 60px;
        padding: 1rem 0.75rem;
    }

    .auth-card {
        padding: 1.5rem;
        border-radius: 12px;
    }

    .auth-card h1 {
        font-size: 1.25rem;
    }

    .auth-status-card {
        padding: 2rem 1.5rem;
    }

    .manage-card {
        border-radius: 12px;
    }

    .manage-nav-section {
        padding: 0.5rem;
    }

    .manage-nav-section .nav-pills {
        flex-direction: row !important;
        flex-wrap: wrap;
        gap: 4px;
    }

    .manage-nav-section .nav-pills .nav-link {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
        text-align: center;
    }

    .manage-content-section {
        padding: 1.25rem;
    }

    .manage-content-section h3 {
        font-size: 1.05rem;
    }

    .manage-wrapper {
        max-width: 100%;
    }

    .auth-wrapper {
        max-width: 100%;
    }

    /* 2FA buttons stacking */
    .manage-content-section .btn-primary {
        display: block;
        width: 100%;
        margin-bottom: 0.5rem;
    }
}
