* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: #f4f5f7;
    color: #1f2933;
}

.login-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.lang-switch {
    position: relative;
    display: inline-flex;
    background: #eceff3;
    border-radius: 999px;
    padding: 2px;
    width: 84px;
    margin-bottom: 14px;
}

.lang-switch::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 40px;
    height: calc(100% - 4px);
    background: #ffffff;
    border-radius: 999px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease;
}

.lang-switch[data-current="en"]::before {
    transform: translateX(40px);
}

.lang-option {
    position: relative;
    z-index: 1;
    flex: 1;
    border: none;
    background: none;
    color: #7b8794;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 5px 0;
    border-radius: 999px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.lang-switch[data-current="uk"] .lang-option[data-lang="uk"],
.lang-switch[data-current="en"] .lang-option[data-lang="en"] {
    color: #1f2933;
}

.login-card {
    width: 100%;
    max-width: 360px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    padding: 32px 28px;
}

.login-card h1 {
    font-size: 20px;
    margin: 0 0 4px;
}

.subtitle {
    margin: 0 0 20px;
    font-size: 13px;
    color: #616e7c;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.login-form label {
    font-size: 13px;
    font-weight: 600;
    margin-top: 10px;
}

.login-form input {
    padding: 10px 12px;
    border: 1px solid #d9dde3;
    border-radius: 6px;
    font-size: 14px;
}

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

.btn-submit {
    margin-top: 20px;
    padding: 11px;
    border: none;
    border-radius: 6px;
    background: #2563eb;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.btn-submit:hover {
    background: #1d4ed8;
}

.alert {
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 16px;
}

.alert-error {
    background: #fdecea;
    color: #b42318;
    border: 1px solid #f7c2bc;
}

.alert-info {
    background: #eef4ff;
    color: #1d4ed8;
    border: 1px solid #c4d7fb;
}