* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f2b3d, #1b4f6e);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.card {
    max-width: 460px;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 32px;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.card-header {
    background: #1e4a6e;
    padding: 28px 24px;
    text-align: center;
    color: white;
}

.card-header h1 {
    font-size: 1.9rem;
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.card-header p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.card-body {
    padding: 32px 28px 38px;
}

.step {
    transition: 0.25s ease;
}

.step-hidden {
    display: none;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1f3e48;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
}

.input-group input {
    width: 100%;
    padding: 14px 18px;
    font-size: 1rem;
    border: 1.5px solid #d4dfe6;
    border-radius: 24px;
    outline: none;
    background: #fff;
    transition: 0.2s;
}

.input-group input:focus {
    border-color: #1e6f9f;
    box-shadow: 0 0 0 3px rgba(30, 111, 159, 0.2);
}

/* Input OTP 6 digit langsung (bukan per digit) */
.otp-input-field {
    letter-spacing: 4px;
    font-size: 1.3rem;
    text-align: center;
    font-weight: 600;
}

.otp-input-field::placeholder {
    letter-spacing: 2px;
    font-size: 1rem;
    font-weight: normal;
    color: #a0b8c8;
}

/* Info email pengirim */
.email-info-card {
    background: #eef4fc;
    border-left: 4px solid #1e6f9f;
    padding: 12px 16px;
    border-radius: 16px;
    margin: 8px 0 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
}

.email-info-card i {
    font-size: 1.2rem;
    color: #1e6f9f;
}

.email-info-card .email-detail {
    font-weight: 700;
    color: #0a4b6e;
    word-break: break-all;
}

.email-info-card .info-message {
    color: #2c697e;
    font-size: 0.75rem;
    margin-top: 4px;
}

/* Timer styling - jarak rapat */
.timer-area {
    background: #f0f6fa;
    padding: 10px 16px;
    border-radius: 60px;
    text-align: center;
    margin: 10px 0 14px;
    font-size: 1rem;
    font-weight: 500;
}

.timer-text {
    color: #155f7c;
}

.timer-warning {
    color: #c44536;
    font-weight: bold;
}

.btn {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 40px;
    background: #1e6f9f;
    color: white;
    cursor: pointer;
    transition: 0.2s;
    margin-top: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.btn:hover {
    background: #0f577f;
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(1px);
}

.btn-secondary {
    background: #5a7c8c;
    box-shadow: none;
    margin-top: 6px;
}

.btn-secondary:hover {
    background: #3e6272;
}

.resend-btn {
    background: transparent;
    color: #1e6f9f;
    box-shadow: none;
    border: 1.5px solid #1e6f9f;
    margin-top: 6px;
}

.resend-btn:disabled {
    opacity: 0.5;
    transform: none;
    cursor: not-allowed;
    border-color: #9bb7c7;
    color: #6c8d9e;
}

.message {
    text-align: center;
    margin-top: 12px;
    font-size: 0.85rem;
    padding: 8px;
    border-radius: 50px;
}

.error-msg {
    background: #ffe9e6;
    color: #bc3f2e;
}

.success-msg {
    background: #e0f2e9;
    color: #1d6f42;
}

.info-msg {
    background: #e6f3f9;
    color: #15607a;
}

hr {
    margin: 16px 0 10px;
    border: none;
    border-top: 1px solid #e2edf2;
}

footer {
    text-align: center;
    font-size: 0.7rem;
    color: #7a98aa;
    margin-top: 20px;
}

.button-group {
    margin-top: 4px;
}

@media (max-width: 480px) {
    .card-body {
        padding: 24px 20px;
    }

    .timer-area {
        margin: 8px 0 12px;
    }

    .email-info-card {
        margin: 6px 0 8px;
    }

    .btn {
        padding: 12px;
        margin-top: 6px;
    }

    .otp-input-field {
        font-size: 1.2rem;
        letter-spacing: 3px;
    }
}