:root {
    --primary-color: #00FF99;
    --secondary-color: #FFFFFF;
    --background-color: #121212;
    --card-bg: rgba(255, 255, 255, 0.02);
    --text-color: #EEEEEE;
    --border-color: #00CC77;
    --border-color-dark: #007443;
    --hover-color: #121212;
    --darker-bg: #0a0a0a;
    --muted-text: #adb5bd;
}

body {
    background: var(--background-color) url('../assets/bg-blurred-cubes.svg') center top / cover no-repeat fixed;
    color: var(--text-color);
    font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    opacity: 1;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

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

/* Animated background gradient */
body::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 255, 153, 0.05) 0%, transparent 50%);
    animation: rotate 20s linear infinite;
    z-index: 0;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.container {
    max-width: 500px;
    width: 100%;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    padding: 2.5rem;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.feature-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: transform .18s ease, box-shadow .18s ease;
}

.header {
    text-align: center;
    margin-bottom: 2rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(0, 255, 153, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.subtitle {
    color: var(--muted-text);
    font-size: 0.95rem;
    font-weight: 400;
}

.captcha-section {
    margin: 2rem 0;
}

.captcha-label {
    font-size: 0.9rem;
    color: var(--muted-text);
    margin-bottom: 1rem;
    text-align: center;
}

.captcha-display {
    background: var(--darker-bg);
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100px;
}

.captcha-display canvas {
    max-width: 100%;
    height: auto;
    image-rendering: crisp-edges;
}

.input-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
}

input[type="text"] {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--darker-bg);
    border: 1px solid var(--border-color-dark);
    border-radius: 0.75rem;
    color: var(--text-color);
    font-size: 1rem;
    font-family: 'Manrope', sans-serif;
    transition: all 0.3s ease;
}

input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 255, 153, 0.1);
}

input[type="text"]::placeholder {
    color: var(--muted-text);
}

.input-hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(0, 255, 153, 0.05);
    border: 1px solid rgba(0, 255, 153, 0.2);
    border-radius: 0.5rem;
    font-size: 0.85rem;
    color: var(--muted-text);
}

.input-hint i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.button-group {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

button {
    flex: 1;
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Manrope', sans-serif;
    border: none;
    position: relative;
    overflow: hidden;
}

button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

button:active::before {
    width: 300px;
    height: 300px;
}

.btn-verify {
    background: var(--primary-color);
    color: var(--background-color);
    border: 1px solid var(--primary-color);
}

.btn-verify:hover {
    background: var(--hover-color);
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 153, 0.3);
}

.btn-verify:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-refresh {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--border-color);
}

.btn-refresh:hover {
    background: rgba(0, 255, 153, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 153, 0.2);
}

.btn-refresh:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-refresh i {
    margin-right: 0.5rem;
}

.message {
    margin-top: 1.5rem;
    padding: 1rem;
    text-align: center;
    border-radius: 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    display: none;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.success {
    background: rgba(0, 255, 153, 0.1);
    border: 1px solid var(--border-color);
    color: var(--primary-color);
}

.message.error {
    background: rgba(255, 82, 82, 0.1);
    border: 1px solid #ff5252;
    color: #ff8a80;
}

.verification-process {
    display: none;
    margin-top: 1.5rem;
}

.verification-step {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: var(--darker-bg);
    border: 1px solid var(--border-color-dark);
    border-radius: 0.5rem;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s ease;
}

.verification-step.active {
    opacity: 1;
    transform: translateX(0);
    border-color: var(--primary-color);
}

.verification-step.complete {
    opacity: 0.6;
    border-color: var(--border-color-dark);
}

.verification-step i {
    margin-right: 0.75rem;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.verification-step.active i {
    animation: pulse 1s ease-in-out infinite;
}

.verification-step.complete i {
    animation: none;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

.verification-text {
    flex: 1;
    font-size: 0.9rem;
    color: var(--text-color);
}

.progress-bar-container {
    width: 100%;
    height: 6px;
    background: var(--darker-bg);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 1rem;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--border-color));
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 255, 153, 0.5);
}

.redirect-countdown {
    display: none;
    text-align: center;
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(0, 255, 153, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
}

.redirect-countdown .countdown-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin: 0.5rem 0;
    text-shadow: 0 0 20px rgba(0, 255, 153, 0.5);
}

.redirect-countdown .countdown-text {
    font-size: 0.9rem;
    color: var(--muted-text);
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.footer {
    margin-top: 2rem;
    margin-bottom: 0rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--muted-text);
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 204, 119, 0.2);
}

.footer a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--secondary-color);
}

/* Mobile responsive */
@media (max-width: 576px) {
    .container {
        padding: 2rem 1.5rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    .captcha-display {
        padding: 1rem;
    }

    .button-group {
        flex-direction: column;
    }
}