* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
    background-color: #090D16;
    color: #F8FAFC;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

.arch-grid-bg {
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.14), transparent 55%),
        linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 100% 100%, 40px 40px, 40px 40px;
    pointer-events: none;
    z-index: 0;
}

.arch-topbar {
    position: relative;
    z-index: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(9, 13, 22, 0.8);
    backdrop-filter: blur(12px);
    padding: 16px 0;
}

.arch-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}

.arch-topbar-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.arch-back {
    color: #94A3B8;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    transition: color 0.15s ease;
}

.arch-back:hover {
    color: #38BDF8;
}

.arch-badge {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #38BDF8;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.25);
    padding: 6px 12px;
    border-radius: 6px;
}

.arch-main {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px 20px;
}

.arch-card {
    width: 100%;
    max-width: 480px;
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 36px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
}

.arch-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.esia-logo {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.esia-g {
    color: #38BDF8;
}

.esia-u {
    color: #F43F5E;
}

.sms-logo {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 24px;
    font-weight: 800;
    color: #F8FAFC;
    letter-spacing: 0.04em;
}

.sms-dot {
    color: #38BDF8;
}

.arch-tag {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94A3B8;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.arch-title {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
    color: #FFFFFF;
}

.arch-subtitle {
    font-size: 15px;
    line-height: 1.5;
    color: #94A3B8;
    margin-bottom: 24px;
}

.arch-alert {
    background: rgba(244, 63, 94, 0.12);
    border: 1px solid rgba(244, 63, 94, 0.4);
    color: #FDA4AF;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.arch-field {
    margin-bottom: 16px;
}

.arch-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #CBD5E1;
    margin-bottom: 6px;
}

.arch-input {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    background: #0B1120;
    border: 1px solid #334155;
    border-radius: 10px;
    color: #F8FAFC;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.arch-input:focus {
    outline: none;
    border-color: #38BDF8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.arch-code-input {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-align: center;
}

.arch-divider {
    position: relative;
    text-align: center;
    margin: 22px 0 18px;
}

.arch-divider::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.arch-divider span {
    position: relative;
    background: #111827;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 600;
    color: #64748B;
}

.arch-btn {
    width: 100%;
    min-height: 52px;
    margin-top: 8px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.1s ease, background-color 0.15s ease;
}

.arch-btn:active {
    transform: scale(0.99);
}

.arch-btn-primary {
    background: #38BDF8;
    color: #090D16;
}

.arch-btn-primary:hover {
    background: #7DD3FC;
}

.arch-card-foot {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
    color: #94A3B8;
}

.arch-card-foot a {
    color: #38BDF8;
    font-weight: 700;
    text-decoration: none;
}

.arch-card-foot a:hover {
    text-decoration: underline;
}
