@import './global.css';

.login-container {
    width: 100%;
    max-width: 500px;
    background: var(--bg-surface);
    border-radius: var(--border-radius-lg);
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow-soft);
    border: 4px solid #ffffff;
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
}

.login-header-text {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-header-text h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: var(--accent-primary);
}

.login-header-text p {
    color: var(--text-secondary);
    font-weight: 600;
}

.otp-title {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.otp-inputs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 2rem;
}

.otp-digit {
    width: 65px;
    height: 75px;
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    border: 3px solid var(--border-color);
    border-radius: 20px;
    background: var(--bg-surface-elevated);
    color: var(--accent-primary);
    transition: all 0.15s ease;
    outline: none;
    font-family: var(--font-family-mono);
}

.otp-digit:focus {
    border-color: var(--accent-primary);
    transform: translateY(4px);
    box-shadow: 0 2px 0 var(--accent-primary);
}

.otp-separator {
    font-size: 2.5rem;
    color: var(--border-color);
    font-weight: 800;
}

.turnstile-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.gdpr-cookies-tos {
    margin-top: 1.5rem;
    padding: 1.2rem;
    background: var(--bg-base);
    border-radius: var(--border-radius-md);
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.6;
    font-weight: 600;
    border: 2px dashed #cbd5e1;
}

.gdpr-cookies-tos a {
    color: var(--accent-primary);
    text-decoration: none;
    padding: 0 2px;
}

.gdpr-cookies-tos a:hover {
    color: var(--accent-warm);
    text-decoration: underline;
    text-decoration-style: wavy;
    text-decoration-thickness: 2px;
}

@media (max-width: 768px) {
    .login-container {
        padding: 2.5rem 2rem;
        width: 90%;
    }

    .otp-inputs {
        gap: 10px;
    }

    .otp-digit {
        width: 55px;
        height: 65px;
        font-size: 2rem;
        border-radius: 16px;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 2rem 1.2rem;
        border-width: 2px;
    }

    .login-header-text h1 {
        font-size: 1.8rem;
    }

    .login-header-text p {
        font-size: 0.9rem;
    }

    .otp-title {
        font-size: 1.1rem;
    }

    .otp-inputs {
        gap: 6px;
    }

    .otp-digit {
        width: 42px;
        height: 52px;
        font-size: 1.6rem;
        border-width: 2px;
        border-radius: 12px;
    }

    .otp-separator {
        font-size: 1.8rem;
    }

    .gdpr-cookies-tos {
        padding: 1rem;
        font-size: 0.75rem;
    }
}