/**
 * Login Page Styles
 * 
 * ============================================================================
 * FILE LOCATION: /includes/css/register.css
 * CREATED: January 17, 2026
 * ============================================================================
 * 
 * MIRRORS: about.css structure and styling
 * APPLIES TO: register.php
 * 
 * BEM NAMING CONVENTION:
 * - Block: .register-page, .auth-card, .guest-reminder
 * - Element: .auth-card__body, .auth-card__title, .form__group
 * - Modifier: .form__label--required
 */

/* =============================================================================
   STICKY HEADER (KEEPS HEADER IN PLACE AT ALL TIMES)
   ============================================================================= */

.navbar,
header,
.site-header,
nav[role="navigation"] {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    width: 100%;
}

body {
    padding-top: 56px;
}

/* =============================================================================
   PAGE LAYOUT VARIABLES + BACKGROUND IMAGE SETTINGS
   ============================================================================= */

:root {
    --tb-header-h: 56px;
    --tb-footer-h: 80px;

    /* Background image settings - SAME AS ABOUT PAGE */
    --tb-register-bg-position: center center;
    --tb-register-bg-size: cover;
    --tb-register-bg-opacity: 1;
    --tb-register-bg-blur: 2px;

    /* Overlay gradient strength */
    --tb-register-overlay-strength: 0.12;
    --tb-register-left-fade: 0.42;

    /* Card transparency - slightly more opaque for better readability */
    --tb-register-card-bg: rgba(255, 255, 255, 0.90);
    --tb-register-card-border: rgba(255, 255, 255, 0.75);
    
    /* Guest reminder (warning style) */
    --tb-guest-reminder-bg: rgba(255, 243, 205, 0.92);
    --tb-guest-reminder-border: rgba(255, 193, 7, 0.85);
}

/* =============================================================================
   FIXED FOOTER + SCROLLABLE CONTENT AREA
   ============================================================================= */

html, body {
    height: 100%;
}

body {
    overflow: hidden;
}

footer,
.site-footer,
.footer {
    position: fixed !important;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1025;
    min-height: var(--tb-footer-h);
}

/* =============================================================================
   MAIN PAGE WRAPPER
   ============================================================================= */

.register-page {
    background-color: #f8f9fa;
    
    /* Background image path - SAME AS ABOUT PAGE */
    --tb-register-bg-url: url("/assets/images/backgrounds/collectors-shelf.jpg");
    
    position: fixed;
    top: var(--tb-header-h);
    left: 0;
    right: 0;
    bottom: var(--tb-footer-h);
    
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    
    isolation: isolate;
    min-height: auto;
    padding-top: 3rem;
    padding-bottom: 2rem;
}

/* Fixed background - stays in place while content scrolls */
.register-page::before {
    content: "";
    position: fixed;
    top: var(--tb-header-h);
    left: 0;
    right: 0;
    bottom: var(--tb-footer-h);
    z-index: -3;
    
    background-image: var(--tb-register-bg-url);
    background-repeat: no-repeat;
    background-size: var(--tb-register-bg-size);
    background-position: var(--tb-register-bg-position);
    
    filter: blur(var(--tb-register-bg-blur)) saturate(0.88) contrast(0.90) brightness(1.06);
    opacity: var(--tb-register-bg-opacity);
    
    pointer-events: none;
}

/* Fixed overlay - stays in place while content scrolls */
.register-page::after {
    content: "";
    position: fixed;
    top: var(--tb-header-h);
    left: 0;
    right: 0;
    bottom: var(--tb-footer-h);
    z-index: -2;
    
    background:
        linear-gradient(90deg,
            rgba(246,236,222,var(--tb-register-left-fade)) 0%,
            rgba(246,236,222,0.22) 22%,
            rgba(246,236,222,0.08) 44%,
            rgba(246,236,222,0.00) 65%),
        linear-gradient(180deg,
            rgba(248,242,234,0.60) 0%,
            rgba(248,242,234,0.20) 40%,
            rgba(248,242,234,0.10) 70%,
            rgba(248,242,234,0.00) 100%),
        rgba(246,236,222,var(--tb-register-overlay-strength));
    
    pointer-events: none;
}

.register-page .container {
    position: relative;
}

/* =============================================================================
   AUTH CARD (TRANSPARENT WITH BACKDROP BLUR)
   ============================================================================= */

.register-page .auth-card {
    background: var(--tb-register-card-bg) !important;
    border: 1px solid var(--tb-register-card-border) !important;
    border-radius: 0.75rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 
        0 0.5rem 2rem rgba(0,0,0,0.15),
        0 0.125rem 0.5rem rgba(0,0,0,0.08),
        inset 0 1px 0 rgba(255,255,255,0.4);
}

.register-page .auth-card__body {
    padding: 2.5rem !important;
}

.register-page .auth-card__title {
    font-weight: 800;
    letter-spacing: -0.4px;
    color: #212529;
    text-shadow: 0 1px 0 rgba(255,255,255,0.35);
    margin-bottom: 1.5rem;
}

/* =============================================================================
   GUEST REMINDER (WARNING BOX)
   ============================================================================= */

.register-page .guest-reminder {
    background: var(--tb-guest-reminder-bg) !important;
    border: 2px solid var(--tb-guest-reminder-border) !important;
    border-radius: 0.5rem;
    padding: 1rem;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.register-page .guest-reminder__icon {
    color: #856404;
    font-size: 1.25rem;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.register-page .guest-reminder__title {
    color: #856404;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
}

.register-page .guest-reminder__body {
    color: #856404;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.register-page .guest-reminder__footer {
    color: #856404;
    opacity: 0.85;
    display: block;
    font-size: 0.875rem;
}

/* =============================================================================
   FORM ELEMENTS
   ============================================================================= */

.register-page .auth-form {
    margin-top: 1rem;
}

.register-page .form__group {
    margin-bottom: 1.25rem;
}

.register-page .form__label {
    font-weight: 600;
    color: #2b3643;
    margin-bottom: 0.5rem;
    display: block;
}

.register-page .form__label--required::after {
    content: " *";
    color: #dc3545;
}

.register-page .form__control {
    background-color: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.register-page .form__control:focus {
    background-color: rgba(255, 255, 255, 1) !important;
    border-color: #0d6efd !important;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15) !important;
    outline: none;
}

.register-page .form__help {
    color: #6c757d;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* =============================================================================
   HCAPTCHA
   ============================================================================= */

.register-page .hcaptcha {
    margin: 1rem 0;
}

.register-page .hcaptcha__widget {
    display: inline-block;
}

/* =============================================================================
   SUBMIT BUTTON
   ============================================================================= */

.register-page .auth-form__submit {
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.register-page .auth-form__submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.register-page .auth-form__submit:active {
    transform: translateY(0);
}

/* =============================================================================
   AUTH LINKS
   ============================================================================= */

.register-page .auth-links {
    margin-top: 1rem;
}

.register-page .auth-links__divider {
    margin: 1.5rem 0;
    opacity: 0.5;
}

.register-page .auth-links__link {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    margin: 0.25rem 0.75rem;
    transition: color 0.2s ease;
}

.register-page .auth-links__link:hover {
    color: #0a58ca;
    text-decoration: underline;
}

.register-page .auth-links__link--inline {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 600;
}

.register-page .auth-links__link--inline:hover {
    color: #0a58ca;
    text-decoration: underline;
}

.register-page .auth-links__text {
    color: #6c757d;
    font-size: 0.95rem;
}

/* =============================================================================
   FLASH MESSAGES (IN AUTH CARDS)
   ============================================================================= */

.register-page .flash-message {
    background: rgba(255, 255, 255, 0.95) !important;
    border-radius: 0.5rem;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.register-page .alert-danger.flash-message {
    background: rgba(248, 215, 218, 0.95) !important;
    border-color: rgba(220, 53, 69, 0.85) !important;
}

.register-page .alert-success.flash-message {
    background: rgba(209, 231, 221, 0.95) !important;
    border-color: rgba(25, 135, 84, 0.85) !important;
}

.register-page .alert-warning.flash-message {
    background: rgba(255, 243, 205, 0.95) !important;
    border-color: rgba(255, 193, 7, 0.85) !important;
}

/* =============================================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================================= */

@media (max-width: 991.98px) {
    body {
        padding-top: 56px;
    }
    
    .register-page {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    .register-page .auth-card__body {
        padding: 2rem !important;
    }
}

@media (max-width: 767.98px) {
    .register-page .auth-card__body {
        padding: 1.5rem !important;
    }
    
    .register-page .auth-card__title {
        font-size: 1.75rem;
    }
}

@media (max-width: 575.98px) {
    .register-page {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
    
    .register-page .auth-card {
        border-radius: 0.65rem;
    }
    
    .register-page .auth-card__body {
        padding: 1.25rem !important;
    }
    
    .register-page .auth-card__title {
        font-size: 1.5rem;
    }
    
    .register-page .form__control {
        font-size: 0.95rem;
        padding: 0.65rem 0.85rem;
    }
}