* { box-sizing: border-box; }

html { min-height: 100%; }
body {
    min-height: 100%;
    margin: 0;
    background: #fff;
    color: #1b1b1b;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

/* The verification panel occupies a centered, viewport-height first screen. */
.apsin-root {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

.verification-area {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-title {
    width: 100%;
    margin: 24px 0 32px;
    padding: 0;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.11;
    text-align: center;
}

.title-text {
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
}

.warn-icon {
    width: 64px;
    height: auto;
    padding: 0 12px 8px;
    display: inline-block;
    vertical-align: middle;
    cursor: pointer;
    animation: apsin-bounce 1s infinite;
    animation-iteration-count: 4;
}

@keyframes apsin-bounce {
    0%, 100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(.8, 0, 1, 1); }
    50% { transform: none; animation-timing-function: cubic-bezier(0, 0, .2, 1); }
}

.verify-card {
    width: auto;
    max-width: 640px;
    min-width: 500px;
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 32px;
    background: #fff;
    border: 1px solid #f3f4f6;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1);
}

.card-logo { flex: 1 1 0; min-width: 0; }
.card-logo img { width: 100%; height: auto; display: block; }
.card-body { flex: 2 1 0; min-width: 0; }
.code-form { display: flex; flex-direction: column; width: 100%; }
.code-input-wrap {
    width: 100%;
    display: flex;
    align-items: center;
    padding: 12px 32px;
    background: #e5e7eb;
    border-radius: 9999px;
}
.lock-icon { width: 18px; height: 18px; flex: none; display: block; }
.code-input-wrap input {
    flex: 1;
    min-width: 0;
    height: 100%;
    margin-left: 12px;
    border: 0;
    outline: 0;
    background: #e5e7eb;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
}
.code-input-wrap input::placeholder { color: #808080; opacity: 1; }
.btn-spacer { height: 24px; }
.verify-btn {
    width: 100%;
    border: 0;
    border-radius: 9999px;
    padding: 12px 32px;
    background: navy;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}
.verify-btn:disabled { opacity: .65; cursor: wait; }

.result { width: calc(100% - 48px); max-width: 640px; margin-top: 24px; padding: 0; text-align: left; }
.result h2,
.result p,
.result strong { margin: 0; font-size: 16px; font-weight: 400; line-height: 24px; }
.result h2 { color: #ff0000; }
.result strong { display: block; color: #ff0000; }
.result.success h2 { color: #16a34a; }
.result.warning h2 { color: #ff0000; }

.details { width: 100%; max-width: 640px; margin-top: 24px; padding: 0 24px; }
.details-title { margin: 0; padding: 12px 0; border-top: 2px solid #f3f4f6; font-size: 1.5rem; font-weight: 700; }
.details-table { width: 100%; border-collapse: collapse; }
.details-table th, .details-table td {
    border: 1px solid #e5e5e5;
    padding: 8px;
    text-align: left;
    font-family: ui-sans-serif, system-ui, sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 19.5px;
}
.details-table td { overflow-wrap: anywhere; }

.site-footer { width: 100%; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 40px; padding: 40px; }
.footer-contact-label { font-weight: 700; }
.footer-contact-email { font-size: 14px; }
.footer-logo { width: auto; height: 70px; display: block; }
.brand-logos { width: max-content; max-width: 100%; margin: 0 auto; display: grid; grid-template-columns: repeat(4, auto); justify-content: center; align-items: center; gap: 0; }
.brand-logos img { width: auto; max-width: 100%; max-height: 36px; height: auto; object-fit: contain; display: block; }
.footer-divider { height: 2px; margin: 40px; border: 0; background: #f3f4f6; }
.footer-copyright { padding: 0 40px 40px; font-size: 12px; }

@media screen and (max-width: 699px) {
    .page-title { margin-top: 24px; margin-bottom: 32px; }
    .title-text {
        display: block;
        width: 100%;
        font-size: clamp(24px, 8.6vw, 36px);
        line-height: 1.11;
    }
    .warn-icon { display: block; margin: 0 auto; }
    .verify-card {
        width: calc(100% - 4px);
        max-width: none;
        min-width: 0;
        margin: 0 2px;
        flex-direction: column;
        gap: 0;
        padding: 32px 24px;
    }
    .card-logo { width: 100%; padding: 0 40px 24px; }
    .card-body { width: 100%; }
    .details { padding-left: 24px; padding-right: 24px; }
    .footer-top { flex-direction: column; align-items: center; }
    .brand-logos { grid-template-columns: repeat(2, auto); }
    .footer-divider { margin-left: 40px; margin-right: 40px; }
}
