@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

body {
    font-family: 'Poppins', sans-serif;
    background: #141414;
    color: #F5F5F5;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
    padding: 24px 16px;
}

/* Background grid */
body::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(43,238,52,0.04) 1px, transparent 0);
    background-size: 24px 24px;
    z-index: 0;
}

/* Glow blobs */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.07;
    pointer-events: none;
    z-index: 0;
}
.blob-1 { width: 400px; height: 400px; background: #2BEE34; top: -100px; right: -80px; }
.blob-2 { width: 300px; height: 300px; background: #1aab21; bottom: -80px; left: -60px; }

/* Card */
.auth-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    background: rgba(22, 22, 22, 0.85);
    border: 1px solid rgba(43,238,52,0.15);
    border-radius: 20px;
    padding: 44px 40px;
    backdrop-filter: blur(16px);
    box-shadow: 0 24px 64px rgba(0,0,0,0.6), 0 0 0 1px rgba(43,238,52,0.06);
    animation: slideUp 0.5s cubic-bezier(0.16,1,0.3,1);
}
@keyframes slideUp {
    from { opacity:0; transform:translateY(24px); }
    to { opacity:1; transform:translateY(0); }
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}
.auth-logo i {
    background: linear-gradient(135deg, #2BEE34, #1aab21);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #141414;
    background: #2BEE34;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 28px;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 6px; }
.auth-sub { font-size: 0.85rem; color: #808080; text-align: center; }

.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; width: 100%; }
label { font-size: 0.8rem; font-weight: 500; color: #A0A0A0; text-align: left; }

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}
.input-wrapper i.input-icon {
    position: absolute;
    left: 14px;
    color: #606060;
    font-size: 0.9rem;
    pointer-events: none;
}
.input-wrapper input {
    width: 100%;
    padding: 12px 14px 12px 40px;
    border-radius: 10px;
    background: rgba(43,238,52,0.03);
    border: 1px solid rgba(43,238,52,0.12);
    color: #F5F5F5;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    transition: all 0.25s;
}
.input-wrapper input:focus {
    outline: none;
    border-color: #2BEE34;
    box-shadow: 0 0 0 3px rgba(43,238,52,0.1);
    background: rgba(43,238,52,0.05);
}
.input-wrapper input::placeholder { color: #505050; }

.auth-btn {
    width: 100%;
    padding: 13px;
    border-radius: 10px;
    background: linear-gradient(135deg, #2BEE34, #1aab21);
    color: #141414;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.25s;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.auth-btn:hover { box-shadow: 0 0 24px rgba(43,238,52,0.35); transform: translateY(-1px); }
.auth-btn:active { transform: translateY(0); }

.back-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
    font-size: 0.8rem;
    color: #606060;
    text-decoration: none;
    transition: color 0.2s;
}
.back-link:hover { color: #2BEE34; }

.toggle-pw {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    color: #606060;
    cursor: pointer;
    font-size: 0.85rem;
    transition: color 0.2s;
    padding: 4px;
}
.toggle-pw:hover { color: #2BEE34; }

#approvalMessage, #signupMessage {
    text-align: center;
    margin-top: 20px;
    font-size: 0.85rem;
    color: #2BEE34;
    background: rgba(43,238,52,0.06);
    border: 1px solid rgba(43,238,52,0.2);
    padding: 10px 14px;
    border-radius: 8px;
    width: 100%;
}
.hidden { display: none !important; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 480px) {
    .auth-card { padding: 32px 22px; border-radius: 16px; }
    .auth-logo { font-size: 1.2rem; }
    h1 { font-size: 1.3rem; }
    .auth-sub { font-size: 0.8rem; }
    .input-wrapper input { padding: 11px 14px 11px 38px; font-size: 0.88rem; }
    .auth-btn { padding: 12px; font-size: 0.9rem; }
}
@media (max-width: 360px) {
    .auth-card { padding: 26px 16px; }
}
@media (max-height: 700px) {
    body { align-items: flex-start; }
}
