/* Base Styles */
:root {
    --bg-color: #0F172A;
    --card-bg: rgba(30, 41, 59, 0.5);
    --border-color: #1E293B;
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --accent-color: #6366F1;
    --accent-hover: #4F46E5;
    --input-bg: rgba(2, 6, 23, 0.5);
    --error-color: #EF4444;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

/* Card Styles */
.card {
    width: 100%;
    max-width: 400px;
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.6s ease-out;
}

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

/* Header */
.header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.icon-box {
    width: 64px;
    height: 64px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.icon-box svg {
    width: 32px;
    height: 32px;
    color: var(--accent-color);
}

h1 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

.description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.25rem;
    max-width: 280px;
    margin: 0 auto;
}

/* OTP Inputs */
.otp-container {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.otp-input {
    width: 3rem;
    height: 3.5rem;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 0.75rem;
    border: 2px solid var(--border-color);
    background: var(--input-bg);
    color: var(--text-secondary);
    outline: none;
    transition: all 0.2s;
    -moz-appearance: textfield;
}

.otp-input::-webkit-outer-spin-button,
.otp-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.otp-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
    color: white;
}

.otp-input.filled {
    border-color: var(--accent-color);
    background: rgba(99, 102, 241, 0.05);
    color: white;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}

.otp-input:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Button */
.btn {
    width: 100%;
    padding: 1rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s;
    cursor: pointer;
    background: #1E293B;
    color: #64748B;
}

.btn.active {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.3);
}

.btn.active:hover {
    background: var(--accent-hover);
}

.btn.active:active {
    transform: scale(0.98);
}

.btn:disabled {
    cursor: not-allowed;
}

/* Footer */
.footer-link {
    display: block;
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--accent-color);
}

.footer-link span {
    color: var(--accent-color);
    font-weight: 500;
}

/* Logos */
.logos {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    opacity: 0.4;
    filter: grayscale(100%);
}

.logos img {
    height: 20px;
}

.invert {
    filter: invert(1);
}