@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f3f0ff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 480px;
}

/* ── Logo ── */
.logo {
    margin-bottom: 32px;
}

.logo img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

/* ── Card ── */
.login-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 48px 40px 40px;
    width: 100%;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.login-card h1 {
    font-size: 24px;
    font-weight: 800;
    color: #1a1a2e;
    text-align: center;
    margin-bottom: 8px;
}

.login-card .subtitle {
    font-size: 15px;
    font-weight: 400;
    color: #6b7280;
    text-align: center;
    margin-bottom: 32px;
}

/* ── Form ── */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.input-field {
    width: 100%;
    padding: 14px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #1a1a2e;
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-field::placeholder {
    color: #9ca3af;
}

.input-field:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.btn-submit {
    width: 100%;
    padding: 14px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    background: #6366f1;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.btn-submit:hover {
    background: #4f46e5;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.btn-submit:active {
    transform: scale(0.98);
}

/* ── Divider ── */
.divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 4px 0;
    color: #9ca3af;
    font-size: 14px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

/* ── Email Button ── */
.btn-email {
    width: 100%;
    padding: 14px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    background: #ffffff;
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-email:hover {
    background: #f9fafb;
    border-color: #6366f1;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.12);
}

.btn-email:active {
    transform: scale(0.98);
}

/* ── Code Inputs ── */
.code-inputs {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.code-digit {
    width: 48px;
    height: 56px;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.code-digit:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.btn-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* ── Responsive ── */
@media (max-width: 520px) {
    .login-card {
        padding: 36px 24px 32px;
    }

    .login-card h1 {
        font-size: 20px;
    }

    .code-digit {
        width: 40px;
        height: 48px;
        font-size: 18px;
    }
}