html {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    margin: 0;
    padding: 0;

    width: 100vw;

    grid-template-rows: auto 1fr auto;

}

.hero-fixed-canvas{
    z-index: 1;
}

.login-page-wrapper {
    display: contents; 
}

.login-content-area {
    grid-row: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    box-sizing: border-box;
}

/* LOGIN CARD */
.login-card-panel {

    margin-top: 10vh;
    z-index: 10;
    position: relative;
    width: 100%;
    max-width: 760px;
    padding: 50px;
    box-sizing: border-box;

    background-color: #1c140e;

    border: 1px solid rgba(232, 212, 175, 0.2);
    border-radius: 16px;

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.6),
        0 5px 15px rgba(0, 0, 0, 0.4);

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.legal-page-wrapper .login-card-panel {
    grid-template-columns: 1fr;
    gap: 0;
}

/* FORM CONTROLS & TYPOGRAPHY TINTS */
.login-form-inner h2 {
    color: var(--accent);
    text-align: center;
    margin-bottom: 25px;
    font-size: clamp(1.4rem, 2vw, 1.8rem);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 18px;
}

.input-group label {
    color: var(--accent);
    font-size: 0.8rem;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.input-group input {
    background: rgba(20, 13, 7, 0.6);
    border: 1px solid rgba(232, 212, 175, 0.3);
    border-radius: 4px;
    padding: 10px 12px;
    color: var(--lighter);
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--lighter);
    background: rgba(20, 13, 7, 0.8);
}

.btn-alignment-center {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 20px;
}

.login-btn {
    width: 100%;
    max-width: 180px;
    margin-top: 10px;
    cursor: pointer;
    background: none;
    border: none;
}

.form-utilities {
    text-align: center;
    margin-top: 20px;
}

.form-link {
    color: rgba(232, 212, 175, 0.6);
    font-size: 0.8rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.form-link:hover {
    color: #f8eed7;
    text-decoration: underline;
}

.game-form {
    flex: 1;
    width: 100%;
}

/* IMAGE STYLE */
.form-graphic-block {
    display: flex;
    justify-content: center;
    align-items: center;
}

.side-panel-art {
    width: 100%;
    max-width: 100vw;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5));
}

.site-footer {
 grid-row: 5;
}

.nav-link {
    cursor: pointer;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

/* REGISTRATION CHECKBOXES COLUMN */

   .login-card-panel.register-card-full {
    display: block;

    width: 100%;
    max-width: 680px;
    padding: 50px 60px;
}

.register-card-full .registration-unified-form {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
}

/* INPUT FIELDS TRACK */
.register-card-full .form-inputs-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* CHECKBOX TRACK */
.register-card-full .registration-checkboxes {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 280px;
    margin-top: 5vh;
}

/* LOWER SUBMIT TRACK */
.register-card-full .btn-alignment-center {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 15px;
    clear: both;
}
.registration-unified-form {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    width: 100%;
}

/* INPUTS BLOCK */
.form-inputs-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1.2;
    width: 100%;
}

.form-inputs-column .input-group {
    width: 100%;
    margin: 0;
}

/* CHECKBOX BLOCK */
.registration-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 0.8;
    max-width: 240px;
    width: 100%;
}

#register .custom-checkbox-container {
    margin-top: 0;
}

/* BUTTON ROW */
.registration-unified-form .btn-alignment-center {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.register-btn {
    width: 100%;
    max-width: 200px;
    margin-top: 10px;
    cursor: pointer;
    background: none;
    border: none;
}

.registration-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 4vh;
    width: 100%;
    max-width: 250px;
    justify-content: center;
}

/* CUSTOM CHECKBOX */
.custom-checkbox-container {
    display: flex;
    align-items: flex-start;
    position: relative;
    cursor: pointer;
    font-size: 0.8rem;
    color: rgba(232, 212, 175, 0.75);
    line-height: 1.3;
    user-select: none;
    gap: 10px;
}

.custom-checkbox-container input {
    position: absolute ;
    opacity: 0.01 ;
    top: 0 ;
    left: 0 ;
    width: 16px ;
    height: 16px ;

    margin: 0 ;
    padding: 0 ;
    cursor: pointer;
    z-index: 2;
}

.checkbox-checkmark {
    position: relative;
    flex-shrink: 0;
    height: 16px;
    width: 16px;
    background-color: rgba(20, 13, 7, 0.8);
    border: 1px solid rgba(232, 212, 175, 0.35);
    border-radius: 4px;
    transition: all 0.2s ease;
    z-index: 1;
}

.required-badge {
    color: var(--light);
    font-weight: bold;
    margin-left: 2px;
}

.custom-checkbox-container:hover input ~ .checkbox-checkmark {
    border-color: #f8eed7;
    box-shadow: 0 0 6px rgba(248, 238, 215, 0.2);
}

.custom-checkbox-container input:checked ~ .checkbox-checkmark {
    background-color: #2a1e12;
    border-color: #e8d4af;
}

.checkbox-checkmark::after {
    content: "";
    position: absolute;
    display: none;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid #f8eed7;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-checkbox-container input:checked ~ .checkbox-checkmark::after {
    display: block;
}

.checkbox-label-text {
    transition: color 0.2s ease;
    font-size: 0.9rem;
}

.custom-checkbox-container:hover .checkbox-label-text {
    color: #f8eed7;
}

/* INLINE CHECKBOX LINKS STYLE */
.checkbox-link {
    color: var(--accent);
    text-decoration: none;
    position: relative;
    z-index: 3;
}

.checkbox-link:hover {
    color: var(--lighter);
    text-decoration: underline;
}


.custom-checkbox-container .checkbox-link {
    pointer-events: auto;
}

.login-form-inner.register-inner p{
    color: var(--accent);
    text-align: center;
}

.success-glow-sigil {
    color: var(--accent);
    text-align: center;
    margin-bottom: 25px;
    font-size: clamp(2.4rem, 2vw, 1.8rem);
    text-shadow: 0 0 15px rgba(248, 238, 215, 0.6);
    margin-bottom: 10px;
    animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.1); filter: brightness(1.3); }
}


/* ==========================================================================
   MOBILE LOGIN STYLES LAYOUT ADAPTER
   ========================================================================== */
@media screen and (max-width: 768px) {

    .login-card-panel {
        max-width: 92vw;
        padding: 35px 25px;
        border-radius: 12px;
        gap: 0px;
    }

    .login-card-panel.horizontal-panel:not(.register-card-full) {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .login-card-panel:not(.register-card-full) .login-form-col {
        flex-direction: column !important;
        gap: 20px;
    }

    .login-card-panel:not(.register-card-full) .form-graphic-block {
        order: -1; /* Graphic floats smoothly above inputs on small screens */
    }

    .login-card-panel:not(.register-card-full) .side-panel-art {
        max-width: 90px;
    }

    .registration-unified-form {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .registration-checkboxes {
        max-width: 100%;
        padding: 15px;
        border-radius: 8px;
        box-sizing: border-box;
    }

    .login-branding-col {
        text-align: center;
        padding: 0;
    }

    button.custom-game-btn.login-btn {
        max-width: 160px;
    }

    .side-panel-art{
        display: none;
    }

    .form-graphic-block:not(.registration-checkboxes){
        width: 0;
    }

    .login-form-inner:not(.register-inner){
        margin-left: -40vw;
    }
}