:root {
    --bg-dark: #000000;
    --bg-darker: #000000;
    --netflix-red: #cc0000;
    --netflix-red-hover: #990000;
    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;
    --glass-bg: rgba(30, 0, 0, 0.4);
    --glass-border: rgba(204, 0, 0, 0.2);
    --input-bg: rgba(0, 0, 0, 0.7);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    padding: 40px 0;
}

/* Dynamic animated background */
.background-animation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 50% 50%, rgba(204, 0, 0, 0.15) 0%, rgba(0,0,0,1) 70%);
    z-index: -1;
    animation: pulse 8s infinite alternate;
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
    100% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

.container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
    z-index: 10;
    margin: auto;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px 30px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.header {
    margin-bottom: 30px;
}

.logo-container {
    margin-bottom: 24px;
}

.nf-logo {
    height: 32px;
}

h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

p {
    color: var(--text-secondary);
    font-size: 14px;
}

.code-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 24px;
}

.code-box {
    width: 45px;
    height: 55px;
    background: var(--input-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.code-box:focus {
    outline: none;
    border-color: var(--netflix-red);
    box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.2);
    transform: translateY(-2px);
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background: var(--netflix-red);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
}

.btn-primary:hover:not(:disabled) {
    background: var(--netflix-red-hover);
    transform: translateY(-2px);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-secondary {
    display: block;
    width: 100%;
    padding: 14px;
    background: var(--input-bg);
    color: white;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
}

.error-msg {
    color: #ef4444;
    font-size: 13px;
    min-height: 20px;
    margin-bottom: 15px;
}

.success-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.success-icon svg {
    width: 30px;
    height: 30px;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.slide-up {
    animation: slideUp 0.5s ease-out;
}

.hidden {
    display: none !important;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.shake {
    animation: shake 0.4s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}

/* Loader */
.loader {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
