* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    color: #111827;
    border-radius: 22px;
    padding: 28px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

.logo {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: #2563eb;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 18px;
}

h1 {
    margin: 0;
    font-size: 28px;
}

.subtitle {
    margin: 8px 0 24px;
    color: #6b7280;
}

label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
    font-size: 14px;
}

input,
select {
    width: 100%;
    padding: 13px 14px;
    border-radius: 12px;
    border: 1px solid #d1d5db;
    margin-bottom: 16px;
    font-size: 15px;
}

button {
    width: 100%;
    border: 0;
    padding: 14px;
    border-radius: 12px;
    background: #2563eb;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

button:hover {
    background: #1d4ed8;
}

.hidden {
    display: none;
}

.status {
    margin-top: 16px;
    padding: 12px;
    border-radius: 12px;
    font-size: 14px;
    display: none;
}

.status.ok {
    display: block;
    background: #dcfce7;
    color: #166534;
}

.status.err {
    display: block;
    background: #fee2e2;
    color: #991b1b;
}

.lang-row {
    margin-bottom: 20px;
}
.secondary-login-btn {
    margin-top: 10px;
    background: #e5e7eb;
    color: #111827;
}
.secondary-login-btn:hover {
    background: #d1d5db;
}


.login-links {
    margin-top: 14px;
    text-align: center;
}

.login-link {
    display: inline-block;
    margin-top: 12px;
    color: #2563eb;
    font-weight: 700;
    text-decoration: none;
}

.login-link:hover {
    text-decoration: underline;
}

.register-card {
    max-width: 560px;
}

.form-two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-three-cols {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}

@media (max-width: 640px) {
    body {
        align-items: flex-start;
        padding: 20px 12px;
    }

    .form-two-cols,
    .form-three-cols {
        grid-template-columns: 1fr;
        gap: 0;
    }
}
