* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, sans-serif;
    background:
        radial-gradient(circle at top left, #e0f2fe, transparent 35%),
        linear-gradient(135deg, #f8fafc, #eef2ff);
    color: #0f172a;
}

.page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.card {
    width: 100%;
    max-width: 920px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e2e8f0;
    border-radius: 32px;
    padding: 42px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

.card.wide {
    max-width: 1100px;
}

.badge {
    display: inline-block;
    background: #e0f2fe;
    color: #0369a1;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 800;
    margin-bottom: 22px;
}

h1 {
    font-size: 54px;
    line-height: 1;
    margin: 0 0 14px;
    letter-spacing: -1.5px;
}

.subtitle {
    font-size: 19px;
    color: #64748b;
    margin: 0 0 24px;
    line-height: 1.5;
}

.small-info {
    margin-top: -12px;
    color: #94a3b8;
    font-size: 14px;
}

.form label {
    display: block;
    font-weight: 800;
    color: #334155;
    margin: 18px 0 8px;
}

input {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    padding: 18px 20px;
    font-size: 18px;
    outline: none;
}

input:focus {
    border-color: #0f172a;
    box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.08);
}

button {
    width: 100%;
    margin-top: 22px;
    border: 0;
    border-radius: 20px;
    padding: 18px;
    font-size: 19px;
    font-weight: 900;
    color: white;
    background: linear-gradient(135deg, #0f172a, #1e3a5f);
    cursor: pointer;
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.18);
}

button:hover,
.back:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

.note {
    margin-top: 18px;
    color: #94a3b8;
}

.alert {
    background: #fee2e2;
    color: #991b1b;
    padding: 16px 18px;
    border-radius: 16px;
    margin-bottom: 18px;
    font-weight: 700;
}

.empty {
    background: #f1f5f9;
    padding: 24px;
    border-radius: 20px;
    color: #64748b;
    font-size: 18px;
    margin-top: 20px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.back {
    display: inline-block;
    text-decoration: none;
    background: #0f172a;
    color: white;
    padding: 13px 18px;
    border-radius: 14px;
    font-weight: 800;
    transition: 0.2s ease;
    white-space: nowrap;
}

.refresh {
    background: #0369a1;
}

.mail-list {
    display: grid;
    gap: 18px;
}

.mail {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 22px;
}

.mail-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.mail h3 {
    margin: 0 0 10px;
    font-size: 22px;
}

.mail p {
    margin: 5px 0;
    color: #64748b;
}

.otp-box {
    min-width: 150px;
    background: #0f172a;
    color: white;
    border-radius: 18px;
    padding: 16px;
    text-align: center;
    height: fit-content;
}

.otp-box span {
    display: block;
    font-size: 13px;
    color: #cbd5e1;
    margin-bottom: 5px;
}

.otp-box strong {
    font-size: 30px;
    letter-spacing: 2px;
}

.body {
    color: #334155;
    line-height: 1.7;
    font-size: 15px;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 8px;
}

.body::-webkit-scrollbar {
    width: 8px;
}

.body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

.body::-webkit-scrollbar-track {
    background: #f1f5f9;
}

@media (max-width: 700px) {
    .page {
        padding: 18px;
        align-items: flex-start;
    }

    .card {
        padding: 28px;
        border-radius: 24px;
    }

    h1 {
        font-size: 42px;
    }

    .subtitle {
        font-size: 16px;
    }

    .topbar,
    .mail-head {
        flex-direction: column;
    }

    .actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .actions .back {
        text-align: center;
    }

    .otp-box {
        width: 100%;
    }
}

.clean-message {
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 18px;
    padding: 18px;
    color: #334155;
    font-size: 16px;
}

.clean-message strong {
    display: block;
    margin-top: 8px;
    font-size: 30px;
    color: #0f172a;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.brand-logo {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, #0f172a, #0369a1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    letter-spacing: 1px;
}

.brand strong {
    display: block;
    font-size: 20px;
    color: #0f172a;
}

.brand span {
    display: block;
    margin-top: 4px;
    font-size: 14px;
    color: #64748b;
}