* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #F4F7FB;
    color: #111827;
}

.page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.card {
    width: 100%;
    max-width: 440px;
    background: #FFFFFF;
    border: 1px solid #E5EAF3;
    border-radius: 30px;
    padding: 26px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.logo {
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.brand h1 {
    margin: 0;
    font-size: 25px;
    line-height: 1.1;
    color: #2563EB;
}

.brand p {
    margin: 4px 0 0;
    font-size: 14px;
    color: #6B7280;
}

.section {
    display: none;
}

.section.active {
    display: block;
}

.iconBox {
    width: 68px;
    height: 68px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    font-size: 36px;
    font-weight: 800;
}

.iconBox.warning {
    background: #FFF7ED;
    color: #F97316;
}

.iconBox.danger {
    background: #FEF2F2;
    color: #EF4444;
}

.iconBox.success {
    background: #DCFCE7;
    color: #16A34A;
}

h2 {
    margin: 0;
    font-size: 25px;
    text-align: center;
    color: #111827;
}

.description {
    margin: 12px 0 22px;
    font-size: 15px;
    line-height: 1.55;
    text-align: center;
    color: #6B7280;
}

.notice {
    background: #EFF6FF;
    border: 1px solid #DBEAFE;
    color: #1E3A8A;
    border-radius: 18px;
    padding: 14px;
    font-size: 14px;
    line-height: 1.45;
    margin-bottom: 20px;
}

.formGroup {
    margin-bottom: 16px;
}

.formGroup label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #374151;
}

.formGroup input {
    width: 100%;
    height: 56px;
    border: 1px solid #E5EAF3;
    border-radius: 18px;
    background: #F9FAFB;
    padding: 0 16px;
    font-size: 16px;
    color: #111827;
    outline: none;
}

.formGroup input:focus {
    border-color: #2563EB;
    background: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
}

button {
    width: 100%;
    height: 56px;
    border: 0;
    border-radius: 18px;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
}

button:active {
    transform: scale(0.98);
}

.primaryButton {
    background: linear-gradient(135deg, #2563EB, #00B0FF);
    color: #FFFFFF;
}

.secondaryButton {
    margin-top: 12px;
    background: #F3F4F6;
    color: #6B7280;
}

.dangerButton {
    background: #EF4444;
    color: #FFFFFF;
}

.dangerButton:disabled {
    background: #E5E7EB;
    color: #9CA3AF;
    cursor: not-allowed;
}

.smallText {
    margin: 16px 0 0;
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
    color: #9CA3AF;
}

.loadingOverlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 1000;
}

.loadingOverlay.active {
    display: flex;
}

.loaderCard {
    width: 100%;
    max-width: 300px;
    background: #FFFFFF;
    border-radius: 28px;
    padding: 30px 24px;
    text-align: center;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
}

.loaderLogo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    animation: pulseLogo 1.25s ease-in-out infinite;
}

.loaderCard h3 {
    margin: 16px 0 6px;
    font-size: 21px;
    color: #111827;
}

.loaderCard p {
    margin: 0;
    font-size: 14px;
    color: #6B7280;
}

@keyframes pulseLogo {
    0% {
        transform: scale(1);
        opacity: 0.85;
    }
    50% {
        transform: scale(1.12);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0.85;
    }
}

@media (max-width: 420px) {
    .page {
        padding: 16px;
        align-items: flex-start;
    }

    .card {
        padding: 22px;
        border-radius: 26px;
        margin-top: 22px;
    }

    .brand h1 {
        font-size: 23px;
    }

    h2 {
        font-size: 23px;
    }
}