@charset "utf-8";

/* 1. GLOBAL LOGIN BASE */
.login-body {
    background-color: #1a1a1a;
    color: white;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 2. CONTAINER */
.login-container {
    display: flex;
    flex: 1;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 50px 100px 50px;
}

.login-prompt {
    flex: 0 0 45%;
    padding-right: 100px;
}

.login-prompt h2 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -2px;
    margin-bottom: 20px;
}

.login-prompt p {
    font-size: 1rem;
    color: #999;
    max-width: 400px;
}

/* 3. FORM FIELDS */
.login-form-area { flex: 1; display: flex; flex-direction: column; gap: 30px; justify-content: center; }
.funky-form { display: flex; flex-direction: column; gap: 15px; }

.form-group {
    position: relative;
    border-bottom: 2px solid #333;
    transition: all 0.5s ease;
    overflow: hidden;
    background: transparent;
}

.minimal-label {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #555;
    font-weight: 800;
    font-size: 1.2rem;
    transition: 0.3s ease;
    z-index: 2; /* Keep above autofill */
}

.placeholder-text {
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    color: #494949;
    font-weight: 600;
    font-size: 1.3rem;
    transition: all 0.5s ease;
    pointer-events: none;
    z-index: 2;
}

.form-group input {
    width: 100%;
    background: transparent !important;
    border: none;
    padding: 20px 20px 20px 40px;
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    outline: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease;
    position: relative;
    z-index: 1;
}

/* 4. AUTOFILL & STATES */
/* This is the magic part that fixes the "terrible" look */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 50px #1a1a1a inset !important;
    -webkit-text-fill-color: white !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Reveal logic */
.form-group:focus-within input,
.form-group input:not(:placeholder-shown),
.form-group input:-webkit-autofill {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.form-group:focus-within .placeholder-text,
.form-group input:not(:placeholder-shown) ~ .placeholder-text,
.form-group input:-webkit-autofill ~ .placeholder-text {
    opacity: 0 !important;
    transform: translateY(-10px) !important;
}

.form-group:focus-within .minimal-label,
.form-group input:-webkit-autofill ~ .minimal-label {
    color: #00a9eb;
}

.form-group:hover, .form-group:focus-within { border-color: #00a9eb; }

/* 5. COMPONENTS */
.eye-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%) translateX(20px);
    background: transparent;
    border: none;
    color: #00a9eb;
    cursor: pointer;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 10;
}

.eye-btn.reveal { opacity: 1; transform: translateY(-50%) translateX(0); }

.activation-btn {
    background: #00a9eb;
    color: white;
    border: none;
    padding: 20px;
    font-weight: 800;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 20px;
    text-transform: uppercase;
    transition: 0.3s;
}

.activation-btn:hover { background: #ff6b4a; box-shadow: 0 10px 30px rgba(255, 107, 74, 0.3); }

.error-msg {
    background: rgba(255, 107, 74, 0.1);
    color: #ff6b4a;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 107, 74, 0.2);
    text-align: center;
}
.form-helpers a{
	color:#fff;
	text-decoration: none;
	transition: 0.3s;
}
.form-helpers a:hover{
	color:#00a9eb;
}
.voice-hint {
    background: #222;
    padding: 15px;
    border-radius: 10px;
    color: #777;
    font-size: 0.8rem;
    border: 1px solid #333;
    transition: all 0.5s ease;
}

.voice-activated .voice-hint {
    background: rgba(0, 169, 235, 0.1);
    color: #00a9eb;
    border-color: #00a9eb;
}
@media (max-width: 900px) {
    .login-container { 
        flex-direction: column; 
        padding: 40px 20px; /* Reduced from 50px 20px */
        justify-content: flex-start; /* Start from top instead of centering */
        height: auto; /* Allow content to dictate height */
        overflow-y: auto;
    }
    
    .login-prompt { 
        padding-right: 0; 
        text-align: center; 
        margin-bottom: 30px; /* Reduced from 50px */
        flex: none; /* Stop it from trying to take up 45% height */
    }

    .login-body {
        overflow-y: auto; /* Allow scrolling on small screens */
    }
}

/* ============================================================ */
/* 6. AUTH HARDENING ADDITIONS                                  */
/* ============================================================ */

/* Honeypot: removed from view but still in the DOM for bots to trip.        */
/* Off-screen (not display:none) because some bots skip display:none fields. */
.jb-hp {
    position: absolute !important;
    left: -9999px !important;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Standard :autofill selector to match the existing -webkit- reveal logic.  */
/* Kept in SEPARATE rules: mixing :autofill and :-webkit-autofill in one      */
/* selector list would invalidate the whole rule in browsers missing one.     */
.form-group input:autofill {
    opacity: 1 !important;
    transform: translateY(0) !important;
}
.form-group input:autofill ~ .placeholder-text {
    opacity: 0 !important;
    transform: translateY(-10px) !important;
}
.form-group input:autofill ~ .minimal-label {
    color: #00a9eb;
}

/* Cloudflare Turnstile widget — give it room and a little breathing space.   */
.cf-turnstile {
    margin-top: 10px;
    min-height: 65px;
}

/* Stack the helper links neatly now there can be more than one.              */
.form-helpers {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin-top: 8px;
}
