* {
    box-sizing: border-box;
}

:root {
    font-family: Tahoma, Arial, sans-serif;
    color: #f1f5f9;
    background: #0b1220;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 15% 20%, #17345c 0, transparent 35%),
        radial-gradient(circle at 85% 80%, #172554 0, transparent 35%),
        #0b1220;
}

button,
input {
    font: inherit;
}

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

.auth-card {
    width: 100%;
    max-width: 430px;
    padding: 34px;
    background: rgba(17, 27, 46, 0.94);
    border: 1px solid #263852;
    border-radius: 22px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
}

.brand {
    text-align: center;
    margin-bottom: 30px;
}

.brand-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    color: white;
    font-size: 32px;
    font-weight: bold;
}

.brand h1 {
    margin: 0;
    font-size: 25px;
}

.brand p {
    color: #94a3b8;
    font-size: 13px;
    margin-top: 10px;
}

.tabs {
    display: flex;
    gap: 8px;
    padding: 5px;
    margin-bottom: 28px;
    background: #0b1628;
    border-radius: 12px;
}

.tab {
    flex: 1;
    padding: 12px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
}

.tab.active {
    background: #2563eb;
    color: white;
}

form h2 {
    font-size: 21px;
    margin: 0 0 8px;
}

.description {
    color: #94a3b8;
    font-size: 13px;
    margin-bottom: 25px;
}

label {
    display: block;
    margin: 17px 0 8px;
    color: #cbd5e1;
    font-size: 13px;
}

input {
    width: 100%;
    padding: 14px;
    border: 1px solid #334155;
    border-radius: 10px;
    background: #0b1628;
    color: white;
    outline: none;
    direction: ltr;
    text-align: left;
}

input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

small {
    display: block;
    margin-top: 7px;
    color: #64748b;
    font-size: 11px;
}

.submit-button {
    width: 100%;
    margin-top: 25px;
    padding: 14px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #2563eb, #0891b2);
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.2s;
}

.submit-button:hover {
    opacity: 0.88;
}

.submit-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.message {
    padding: 12px;
    margin-bottom: 18px;
    border-radius: 9px;
    font-size: 13px;
    line-height: 1.8;
}

.message.error {
    background: #451b24;
    color: #fca5a5;
}

.message.success {
    background: #123b2b;
    color: #86efac;
}

footer {
    margin-top: 30px;
    text-align: center;
    color: #64748b;
    font-size: 11px;
}

[hidden] {
    display: none !important;
}

@media (max-width: 480px) {
    .page {
        padding: 14px;
    }

    .auth-card {
        padding: 25px 20px;
    }

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

@media (max-width: 480px) {
    .page {
        min-height: 100dvh;
        align-items: flex-start;
        padding: 18px 12px;
    }

    .auth-card {
        max-width: 100%;
        padding: 24px 18px;
        border-radius: 16px;
    }

    .brand {
        margin-bottom: 22px;
    }

    .brand-icon {
        width: 56px;
        height: 56px;
        font-size: 28px;
    }

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

    .tabs {
        margin-bottom: 22px;
    }

    .tab {
        min-height: 46px;
        padding: 11px 8px;
    }

    input {
        min-height: 48px;
        font-size: 16px;
    }

    .submit-button {
        min-height: 48px;
        font-size: 15px;
    }

    footer {
        margin-top: 22px;
    }
}

@media (max-width: 350px) {
    .auth-card {
        padding: 20px 14px;
    }

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

