* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 16px;
    font-family: 'Poppins', sans-serif;
    color: #1f2941;
    background: #eef3fb;
}

.verify-card {
    width: 100%;
    min-width: 0;   /* may be narrower than the six boxes' full size: they shrink to fit */
    max-width: 440px;
    background: #ffffff;
    border-radius: 24px;
    padding: 32px 28px;
    text-align: center;
    box-shadow: 0 18px 30px rgba(65, 84, 159, 0.08);
}

.logo {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 18px;
}

.logo-blue {
    color: #1f3e8a;
}

.logo-black {
    color: #1f2941;
}

h1 {
    margin: 0 0 10px;
    font-size: 24px;
}

.intro {
    margin: 0 0 24px;
    color: #5c6e88;
    font-size: 14px;
    line-height: 1.5;
}

.otp-boxes {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
}

/* Six boxes always fit: they shrink together on a narrow phone instead of pushing the card wider. */
.otp-box {
    flex: 0 1 48px;
    min-width: 0;
    width: 48px;
    height: 56px;
    border: 1px solid #d7e3f5;
    border-radius: 14px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    font-family: inherit;
    color: #1f3e8a;
}

.otp-box:focus {
    outline: none;
    border-color: #1f3e8a;
    box-shadow: 0 0 0 3px rgba(31, 62, 138, 0.15);
}

/* Room for two lines is kept from the start, so "We've sent a code..." or an error appearing (or wrapping on
   a phone) doesn't push the button down. */
.message {
    min-height: 42px;
    line-height: 1.5;
    margin: 0 0 16px;
    font-size: 14px;
    color: #5c6e88;
}

.message.error {
    color: #b3261e;
}

.message.success {
    color: #1a7f37;
}

.primary {
    width: 100%;
    border: none;
    border-radius: 14px;
    padding: 14px 18px;
    background: #1f3e8a;
    color: #ffffff;
    font-size: 15px;
    font-family: inherit;
    cursor: pointer;
}

.primary:disabled {
    opacity: 0.5;
    cursor: default;
}

.resend-row {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #5c6e88;
}

.link {
    min-height: 44px;
    border: none;
    background: none;
    padding: 0 6px;
    color: #1f3e8a;
    font-weight: 600;
    font-family: inherit;
    font-size: 14px;
    text-decoration: underline;
    cursor: pointer;
}

.link:disabled {
    color: #9aa6bd;
    text-decoration: none;
    cursor: default;
}

.countdown {
    color: #5c6e88;
    font-variant-numeric: tabular-nums;
}

.back {
    margin: 22px 0 0;
    font-size: 14px;
}

.back a {
    color: #1f3e8a;
}

@media (max-width: 400px) {
    .verify-card {
        padding: 28px 18px;
    }

    .otp-boxes {
        gap: 6px;
    }
}
