:root {
    --white-bg: #ffffff;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --green-clear: #16a34a;
    --red-alert: #e11d48;
    --border-light: #e2e8f0;
    --font-main: 'Plus Jakarta Sans', sans-serif;
    --font-display: 'Outfit', sans-serif;
    --bg-gradient: radial-gradient(circle at 30% 50%, #0f172a 0%, #050102 100%);
    --card-bg: rgba(255, 255, 255, 0.97);
    --input-bg: #f8fafc;
    --input-focus-bg: #ffffff;
    --panel-bg: linear-gradient(160deg, #0a0f1c 0%, #111827 40%, #0d1520 100%);
    --q-box-bg: #f8fafc;
    --q-box-hover-bg: #ffffff;
    --info-card-bg: rgba(255, 255, 255, 0.02);
    --info-card-border: rgba(255, 255, 255, 0.04);
    --status-bg: rgba(255, 255, 255, 0.02);
    --status-border: rgba(255, 255, 255, 0.04);
    --disclaimer-bg: rgba(22, 163, 74, 0.05);
    --disclaimer-border: rgba(22, 163, 74, 0.15);
}

body.dark-mode {
    --bg-gradient: radial-gradient(circle at 30% 50%, #1a1a2e 0%, #0a0a14 100%);
    --card-bg: rgba(30, 30, 50, 0.97);
    --text-dark: #e2e8f0;
    --text-muted: #94a3b8;
    --border-light: #334155;
    --input-bg: #1e293b;
    --input-focus-bg: #263348;
    --panel-bg: linear-gradient(160deg, #0f0f1e 0%, #1a1a2e 40%, #12121f 100%);
    --q-box-bg: #1e293b;
    --q-box-hover-bg: #263348;
    --info-card-bg: rgba(255, 255, 255, 0.03);
    --info-card-border: rgba(255, 255, 255, 0.06);
    --status-bg: rgba(255, 255, 255, 0.03);
    --status-border: rgba(255, 255, 255, 0.06);
    --disclaimer-bg: rgba(22, 163, 74, 0.08);
    --disclaimer-border: rgba(22, 163, 74, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background: var(--bg-gradient);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
    transition: background 0.5s ease;
}

.particles-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    border-radius: 50%;
    animation: floatUp linear infinite;
}

.particle:nth-child(1) { left: 10%; animation-duration: 12s; animation-delay: 0s; width: 3px; height: 3px; background: rgba(225, 29, 72, 0.3); }
.particle:nth-child(2) { left: 25%; animation-duration: 15s; animation-delay: 2s; width: 5px; height: 5px; background: rgba(22, 163, 74, 0.5); }
.particle:nth-child(3) { left: 40%; animation-duration: 10s; animation-delay: 4s; width: 2px; height: 2px; background: rgba(255, 255, 255, 0.2); }
.particle:nth-child(4) { left: 55%; animation-duration: 18s; animation-delay: 1s; width: 4px; height: 4px; background: rgba(225, 29, 72, 0.4); }
.particle:nth-child(5) { left: 70%; animation-duration: 14s; animation-delay: 3s; width: 3px; height: 3px; background: rgba(22, 163, 74, 0.3); }
.particle:nth-child(6) { left: 85%; animation-duration: 11s; animation-delay: 5s; width: 5px; height: 5px; background: rgba(255, 255, 255, 0.15); }
.particle:nth-child(7) { left: 15%; animation-duration: 16s; animation-delay: 6s; width: 2px; height: 2px; background: rgba(225, 29, 72, 0.5); }
.particle:nth-child(8) { left: 50%; animation-duration: 13s; animation-delay: 7s; width: 4px; height: 4px; background: rgba(22, 163, 74, 0.4); }
.particle:nth-child(9) { left: 75%; animation-duration: 9s; animation-delay: 8s; width: 3px; height: 3px; background: rgba(255, 255, 255, 0.25); }
.particle:nth-child(10) { left: 90%; animation-duration: 17s; animation-delay: 0s; width: 5px; height: 5px; background: rgba(225, 29, 72, 0.35); }

@keyframes floatUp {
    0% { bottom: -10%; opacity: 0; transform: translateX(0) scale(1); }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { bottom: 110%; opacity: 0; transform: translateX(40px) scale(0.5); }
}

.theme-float-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.theme-float-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

.theme-float-icon {
    font-size: 20px;
    position: absolute;
    transition: all 0.3s ease;
}

.sun-icon { opacity: 1; }
.moon-icon { opacity: 0; }

body.dark-mode .sun-icon { opacity: 0; }
body.dark-mode .moon-icon { opacity: 1; }

.login-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    max-width: 1050px;
    width: 92%;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    animation: cardEntry 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes cardEntry {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.login-card {
    flex: 1.1;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 35px 35px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    overflow-y: auto;
    max-height: 90vh;
    transition: background 0.5s ease;
}

.login-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.login-logo-link {
    text-decoration: none;
    display: block;
}

.login-logo {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-logo:hover {
    transform: scale(1.06);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
}

.login-brand-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.login-shiny-text {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 900;
    font-style: italic;
    letter-spacing: -2px;
    background: linear-gradient(120deg, var(--text-dark) 40%, #16a34a 50%, var(--text-dark) 60%);
    background-size: 300% 100%;
    background-position: -100% 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: loginShine 6s linear infinite;
    margin-bottom: -6px;
}

@keyframes loginShine {
    0% { background-position: -100% 0; }
    40% { background-position: 200% 0; }
    100% { background-position: 200% 0; }
}

.login-subtitle {
    font-size: 0.8rem;
    font-weight: 800;
    font-style: italic;
    letter-spacing: 0.8px;
    color: var(--text-dark);
    text-transform: uppercase;
    padding-left: 50px;
    position: relative;
}

.login-subtitle::before {
    content: '';
    position: absolute;
    left: 33px;
    top: 50%;
    width: 12px;
    height: 1.5px;
    background: var(--text-dark);
    opacity: 0.5;
    border-radius: 1px;
}

.login-welcome {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    font-weight: 500;
    margin-bottom: 4px;
}

.disclaimer-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: var(--disclaimer-bg);
    border: 1px solid var(--disclaimer-border);
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 0.73rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.disclaimer-box i {
    color: var(--green-clear);
    font-size: 0.9rem;
    margin-top: 2px;
}

#regForm {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.section-title {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--green-clear);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.section-title::after {
    content: "";
    height: 1px;
    flex-grow: 1;
    background: linear-gradient(90deg, var(--border-light), transparent);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.full-width {
    grid-column: span 2;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-group label i {
    color: var(--green-clear);
    font-size: 0.75rem;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    width: 100%;
    padding: 11px 14px;
    border: 2px solid var(--border-light);
    border-radius: 10px;
    font-family: var(--font-main);
    font-size: 0.85rem;
    color: var(--text-dark);
    background: var(--input-bg);
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    outline: none;
}

.input-wrapper input:focus {
    border-color: var(--green-clear);
    background: var(--input-focus-bg);
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.08);
}

.input-wrapper input::placeholder {
    color: #94a3b8;
    font-style: italic;
}

.input-wrapper input.error {
    border-color: var(--red-alert) !important;
    box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.08) !important;
}

.input-wrapper input.success {
    border-color: var(--green-clear) !important;
}

.password-strength {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.q-group {
    background: var(--q-box-bg);
    padding: 14px 14px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    position: relative;
}

.q-group:hover {
    border-color: rgba(22, 163, 74, 0.3);
    background: var(--q-box-hover-bg);
}

.q-number {
    position: absolute;
    top: -8px;
    right: 10px;
    background: var(--green-clear);
    color: #ffffff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 900;
    box-shadow: 0 4px 10px rgba(22, 163, 74, 0.3);
}

.q-group label {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.q-group label i {
    color: var(--green-clear);
}

.q-group .input-wrapper {
    margin-bottom: 6px;
}

.q-group .input-wrapper:last-child {
    margin-bottom: 0;
}

.login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px;
    background: var(--green-clear);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.3);
    margin-top: 8px;
}

.login-btn:hover:not(:disabled) {
    background: #15803d;
    box-shadow: 0 8px 30px rgba(22, 163, 74, 0.5);
    transform: translateY(-2px);
}

.login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.login-btn:not(:disabled):active {
    transform: scale(0.98);
}

.login-btn i {
    transition: transform 0.35s ease;
}

.login-btn:hover i {
    transform: translateX(4px);
}

.error-message {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(225, 29, 72, 0.08);
    border: 1px solid rgba(225, 29, 72, 0.2);
    border-radius: 10px;
    color: var(--red-alert);
    font-size: 0.85rem;
    font-weight: 600;
    animation: shakeError 0.5s ease;
}

.error-message.hidden {
    display: none;
}

@keyframes shakeError {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.back-home-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 4px;
}

.back-home-link:hover {
    color: var(--text-dark);
    gap: 12px;
}

.login-info-panel {
    flex: 0.85;
    background: var(--panel-bg);
    padding: 40px 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    transition: background 0.5s ease;
}

.decorative-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid;
    pointer-events: none;
}

.ring-1 { width: 250px; height: 250px; top: -80px; right: -80px; border-color: rgba(22, 163, 74, 0.15); animation: ringPulse 4s infinite ease-in-out; }
.ring-2 { width: 180px; height: 180px; bottom: -50px; left: -50px; border-color: rgba(225, 29, 72, 0.1); animation: ringPulse 4s infinite ease-in-out 1s; }
.ring-3 { width: 100px; height: 100px; top: 40%; right: 20px; border-color: rgba(255, 255, 255, 0.04); animation: ringPulse 4s infinite ease-in-out 2s; }

@keyframes ringPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; }
}

.decorative-line { position: absolute; pointer-events: none; }
.line-1 { width: 60px; height: 1px; background: linear-gradient(90deg, transparent, rgba(22, 163, 74, 0.5), transparent); top: 20%; right: 15%; transform: rotate(-30deg); animation: lineShine 3s infinite ease-in-out; }
.line-2 { width: 40px; height: 1px; background: linear-gradient(90deg, transparent, rgba(225, 29, 72, 0.3), transparent); bottom: 25%; left: 20%; transform: rotate(45deg); animation: lineShine 3s infinite ease-in-out 1.5s; }

@keyframes lineShine {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.info-content { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; position: relative; z-index: 2; width: 100%; }
.info-icon-wrapper { position: relative; width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; }
.icon-glow { position: absolute; width: 100%; height: 100%; border-radius: 50%; background: radial-gradient(circle, rgba(22, 163, 74, 0.3) 0%, transparent 70%); animation: glowPulse 2.5s infinite ease-in-out; }

@keyframes glowPulse {
    0%, 100% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.3); opacity: 1; }
}

.info-icon-large { font-size: 1.8rem; color: var(--green-clear); position: relative; z-index: 1; animation: floatIcon 3s infinite ease-in-out; }

@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.info-content h2 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 800; font-style: italic; color: #ffffff; letter-spacing: 0.5px; }
.info-content p { font-size: 0.75rem; color: #94a3b8; line-height: 1.6; max-width: 240px; }

.info-cards { display: flex; flex-direction: column; gap: 8px; width: 100%; margin-top: 5px; }

.info-card-static {
    display: flex; align-items: center; gap: 10px; padding: 12px 14px;
    background: var(--info-card-bg); border: 1px solid var(--info-card-border);
    border-radius: 12px; transition: all 0.4s ease;
}

.info-card-static:hover { background: rgba(22, 163, 74, 0.06); border-color: rgba(22, 163, 74, 0.2); transform: translateX(4px); }

.card-icon-wrap { width: 35px; height: 35px; border-radius: 10px; background: rgba(22, 163, 74, 0.1); border: 1px solid rgba(22, 163, 74, 0.2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.card-icon-wrap i { color: var(--green-clear); font-size: 0.85rem; }
.card-text { display: flex; flex-direction: column; gap: 1px; text-align: left; flex: 1; }
.card-title { font-size: 0.78rem; font-weight: 700; color: #ffffff; letter-spacing: 0.3px; }
.card-desc { font-size: 0.68rem; color: #64748b; font-weight: 500; }

.status-bar {
    display: flex; align-items: center; gap: 8px; padding: 8px 14px;
    background: var(--status-bg); border: 1px solid var(--status-border);
    border-radius: 50px; font-size: 0.65rem; color: #64748b; font-weight: 500; letter-spacing: 0.3px; margin-top: 5px;
}

.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green-clear); box-shadow: 0 0 10px rgba(22, 163, 74, 0.6); animation: statusBlink 2s infinite ease-in-out; }

@keyframes statusBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

@media (max-width: 768px) {
    .login-wrapper { flex-direction: column; max-width: 450px; }
    .login-info-panel { display: none; }
    .login-card { padding: 30px 20px; border-radius: 24px; }
    .form-grid { grid-template-columns: 1fr; }
    .full-width { grid-column: span 1; }
    .login-shiny-text { font-size: 2.4rem; }
    .login-logo { width: 65px; height: 65px; }
    .login-subtitle { padding-left: 42px; }
    .theme-float-btn { top: 15px; right: 15px; width: 42px; height: 42px; }
}

@media (max-width: 480px) {
    .login-card { padding: 25px 16px; }
    .login-shiny-text { font-size: 2rem; }
    .theme-float-btn { top: 10px; right: 10px; width: 38px; height: 38px; }
    .theme-float-icon { font-size: 16px; }
}