﻿/* ==========================================================================
   1. BRAND DESIGN SYSTEM & TOKENS
   ========================================================================== */
:root {
    /* Lifted up from deep pitch black to a premium, warm dark moss slate */
    --bg-main: #0d120f;
    /* Elevated surface tone so cards and layout containers clearly pop */
    --bg-card: #18221c;
    /* Higher illumination shift on active hover states */
    --bg-card-hover: #212e26;
    /* Clean outline boundaries to prevent dark layout sections from bleeding */
    --border-color: rgba(223, 183, 86, 0.18);
    --border-subtle: rgba(255, 255, 255, 0.08);
    /* Typography Contrasts */
    --text-pure: #ffffff;
    --text-muted: #a0b2a7; /* Brightened mid-tone gray-sage for premium readability */
    /* Cafèro Theme Branding Accents */
    --accent-gold: #dfb756;
    --accent-gold-hover: #eed074;
    --gold-glow: rgba(223, 183, 86, 0.15);
}

/* ==========================================================================
   2. GLOBAL RESETS & BASE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-pure);
    transition: background-color 0.3s ease;
}

/* ==========================================================================
   3. FULL-SCREEN BACKGROUND REGISTRATION LAYOUT
   ========================================================================== */
.register-split-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
    padding: 40px;
}

    /* Base layer: Full window background */
    .register-split-container::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: url('/images/HomePage2.jpg') center/cover no-repeat;
        filter: brightness(0.85) contrast(1.05) saturate(1.1);
        z-index: -2;
        transform: scale(1.02);
    }

    /* Tint layer: Dual radial gradient for vignette & golden warm lighting */
    .register-split-container::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle at 50% 50%, rgba(223, 183, 86, 0.06) 0%, transparent 50%), radial-gradient(ellipse at center, rgba(13, 18, 15, 0.5) 0%, rgba(7, 10, 8, 0.92) 100%);
        z-index: -1;
    }

/* Branding layout placed above the card */
.brand-content {
    text-align: center;
    margin-bottom: 36px;
    max-width: 520px;
    z-index: 2;
}

.register-logo {
    font-family: 'Playfair Display', serif;
    font-size: 64px;
    font-weight: 800;
    color: var(--text-pure);
    letter-spacing: -1px;
    margin-bottom: 8px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9);
}

.software-tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--accent-gold);
    text-transform: uppercase;
    margin-bottom: 16px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.brand-content p {
    color: var(--text-pure);
    font-size: 15px;
    line-height: 1.6;
    font-weight: 400;
    opacity: 0.9;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

/* --- THE FLOATING CARD --- */
.register-right {
    width: 100%;
    max-width: 460px;
    z-index: 2;
}

.register-card {
    width: 100%;
    background: rgba(18, 25, 21, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    border-top: 2px solid var(--accent-gold);
    border-radius: 20px;
    padding: 42px 36px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75), 0 0 30px rgba(223, 183, 86, 0.08);
}

.register-header {
    text-align: center;
    margin-bottom: 28px;
}

    .register-header h2 {
        font-size: 28px;
        font-weight: 800;
        color: var(--accent-gold);
        margin-bottom: 6px;
        letter-spacing: -0.5px;
    }

    .register-header p {
        color: var(--text-muted);
        font-size: 14px;
        font-weight: 400;
    }

/* ==========================================================================
   4. FORM FIELDS & ENCLOSURES
   ========================================================================== */
form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.input-group label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background-color: rgba(10, 14, 12, 0.65);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 0 16px;
    transition: all 0.3s ease;
}

    .input-wrapper:focus-within {
        border-color: var(--accent-gold);
        box-shadow: 0 0 16px rgba(223, 183, 86, 0.25);
        background-color: rgba(10, 14, 12, 0.85);
    }

/* SVG Input Icon Formatting */
.input-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

    .input-icon svg {
        width: 18px;
        height: 18px;
        stroke: var(--accent-gold);
    }

.input-wrapper input {
    width: 100%;
    padding: 14px 40px 14px 0;
    border: none;
    background: transparent;
    font-size: 15px;
    color: var(--text-pure);
    outline: none;
}

    .input-wrapper input::placeholder {
        color: #55685d;
    }

/* Password Toggle Controls */
.password-toggle-btn {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

    .password-toggle-btn:hover {
        color: var(--accent-gold);
    }

.eye-icon {
    width: 20px;
    height: 20px;
    display: block;
}

/* SweetAlert Modern Toast Custom Configurations overrides */
.modern-toast-popup {
    border-radius: 12px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4) !important;
    border: 1px solid var(--accent-gold) !important;
    background-color: var(--bg-card) !important;
    color: var(--text-pure) !important;
}

/* ==========================================================================
   5. BUTTON & LINK ROUTING ACTIONS
   ========================================================================== */
.btn-register {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--accent-gold-hover) 0%, var(--accent-gold) 100%);
    color: #0d120f;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.3px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(223, 183, 86, 0.3);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    margin-top: 8px;
}

    .btn-register:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 28px rgba(223, 183, 86, 0.45);
        filter: brightness(1.05);
    }

    .btn-register:active {
        transform: translateY(0);
    }

.login-prompt {
    margin-top: 24px;
    text-align: center;
    border-top: 1px solid var(--border-subtle);
    padding-top: 20px;
}

    .login-prompt p {
        color: var(--text-muted);
        font-size: 14px;
        margin-bottom: 6px;
    }

.login-link {
    color: var(--accent-gold);
    font-weight: 800;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s;
}

    .login-link:hover {
        color: var(--accent-gold-hover);
        text-decoration: underline;
    }

/* ==========================================================================
   6. RESPONSIVE ADAPTABILITY VIEWPORTS
   ========================================================================== */
@media (max-width: 480px) {
    .register-card {
        padding: 32px 22px;
    }

    .register-logo {
        font-size: 44px;
    }
}

.slide-up {
    animation: slideUp 0.3s ease-out;
}

/* ==========================================================================
   7. AUTOFILL OVERRIDES
   ========================================================================== */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #0a0e0c inset !important;
    -webkit-text-fill-color: #ffffff !important;
    caret-color: #ffffff !important;
    transition: background-color 50000s ease-in-out 0s !important;
}
