/* BBcoin - Authentication Layout CSS */
/* Specific layout components for login/auth pages */

/* ========================================
   CSS CUSTOM PROPERTIES
======================================== */
:root {
    /* Mascot image ratio and fade controls */
    --mascote-ratio: 0.6667;          /* width/height of mascote.png = 1024/1536 */
    --fade-width: 120px;              /* gradient fade width on the right */
    --fade-width-mobile: 90px;        /* reduced fade for mobile screens */
}

/* ========================================
   LOGIN CONTAINER LAYOUT
======================================== */
.login-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
    position: relative;
    background: transparent;   /* allows global background (.bg-animation) to show */
    overflow: hidden;          /* prevents content overflow */
}

/* Mascot Background with Mask */
.login-container::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('/includes/images/mascote.png');
    background-repeat: no-repeat;
    background-position: left center;   /* anchored to the left */
    background-size: auto 100%;         /* 100% height; proportional width */
    pointer-events: none;

    /* Mask with same dimensions as image: width = 100vh * ratio; height = 100% */
    -webkit-mask-size: calc(100vh * var(--mascote-ratio)) 100%;
    mask-size:         calc(100vh * var(--mascote-ratio)) 100%;
    -webkit-mask-position: left center;
    mask-position:         left center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat:         no-repeat;

    /* Fade gradient aligned to right edge of image (black = show; transparent = hide) */
    -webkit-mask-image: linear-gradient(
        to right,
        rgb(0 0 0) 0,
        rgb(0 0 0) calc(100% - var(--fade-width)),
        rgba(0, 0, 0, 0) 100%
    );
    mask-image: linear-gradient(
        to right,
        rgb(0 0 0) 0,
        rgb(0 0 0) calc(100% - var(--fade-width)),
        rgba(0, 0, 0, 0) 100%
    );
}

/* ========================================
   FORM WRAPPER
======================================== */
.login-form-wrapper {
    width: 100%;
    max-width: 400px;
    background: rgba(42, 27, 105, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid var(--neon-cyan);
    border-radius: 12px;
    box-shadow: var(--shadow-neon) var(--neon-cyan);
    padding: 2rem;
    animation: glow-pulse 3s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
    from { box-shadow: 0 0 20px var(--neon-cyan); }
    to   { box-shadow: 0 0 30px var(--neon-cyan), 0 0 40px var(--neon-cyan-alt); }
}

/* ========================================
   HEADER STYLING
======================================== */
.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.login-title {
    color: var(--neon-pink);
    text-shadow: var(--shadow-neon) var(--neon-pink);
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    animation: title-glow 2s ease-in-out infinite alternate;
}

@keyframes title-glow {
    from { text-shadow: 0 0 20px var(--neon-pink); }
    to   { text-shadow: 0 0 30px var(--neon-pink), 0 0 40px var(--neon-pink-alt); }
}

.login-subtitle {
    color: var(--gold);
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.8;
}

/* ========================================
   FOOTER STYLING
======================================== */
.login-footer { 
    text-align: center; 
    border-top: 1px solid rgba(240, 240, 240, 0.2); 
    padding-top: 1rem; 
}

.login-links { 
    text-align: center; 
    margin-bottom: 1rem; 
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */
@media (max-width: 768px) {
    .login-container { 
        padding: 1rem; 
        justify-content: center; 
    }
    .login-form-wrapper { 
        max-width: 420px; 
        padding: 1.5rem; 
    }
}

@media (max-width: 480px) {
    .login-container { 
        padding: 0.5rem; 
    }
    
    .login-form-wrapper { 
        max-width: 100%; 
        padding: 1.5rem; 
    }
    
    .login-title { 
        font-size: 2rem; 
    }

    /* Adjust mascot fade for smaller screens */
    .login-container::before {
        -webkit-mask-image: linear-gradient(
            to right,
            rgb(0 0 0) 0,
            rgb(0 0 0) calc(100% - var(--fade-width-mobile)),
            rgba(0, 0, 0, 0) 100%
        );
        mask-image: linear-gradient(
            to right,
            rgb(0 0 0) 0,
            rgb(0 0 0) calc(100% - var(--fade-width-mobile)),
            rgba(0, 0, 0, 0) 100%
        );
    }
}

@media (max-width: 320px) {
    .login-form-wrapper { 
        padding: 1rem; 
    }
    
    .login-title { 
        font-size: 1.8rem; 
    }
}