﻿* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: system-ui, Arial, sans-serif;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
    color: #111827;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.auth-card {
    width: 100%;
    max-width: 430px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
}

.topline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
}

.brand {
    font-size: 28px;
    font-weight: 800;
    color: #4f46e5;
    letter-spacing: 0.03em;
}

.brand-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    width:100%;
    margin-bottom:10px;
}

.roomline {
    font-size: 13px;
    color: #6b7280;
    margin-top: 4px;
}

.pill {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    font-size: 12px;
    font-weight: 600;
    background: #f9fafb;
}

h1 {
    margin: 0 0 8px 0;
    font-size: 28px;
    line-height: 1.1;
}

.subtitle {
    margin: 0 0 18px 0;
    color: #6b7280;
    font-size: 14px;
}

label {
    display: block;
    margin: 12px 0 6px;
    font-size: 14px;
    font-weight: 600;
}

input {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    padding: 14px 16px;
    font-size: 15px;
    outline: none;
    background: #fff;
}

input:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.10);
}

.primary-btn,
.secondary-btn {
    width: 100%;
    border: 0;
    border-radius: 14px;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 14px;
}

.primary-btn {
    background: #111827;
    color: #fff;
}

.secondary-btn {
    background: #eef2ff;
    color: #3730a3;
}

.link-btn {
    border: 0;
    background: transparent;
    color: #4f46e5;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    margin-top: 12px;
    display: inline-block;
}

.link-stack {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feedback {
    margin-top: 14px;
    min-height: 20px;
    font-size: 14px;
}

.ok {
    color: #166534;
}

.err {
    color: #b91c1c;
}

.warn {
    color: #a16207;
}

.hide {
    display: none;
}

.lang-switch{
    position: static;
}

.lang-switch select{
    border:1px solid #d1d5db;
    border-radius:8px;
    padding:5px 8px;
    font-size:12px;
    background:white;
    cursor:pointer;
}

.top-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

@media (max-width: 480px) {
    .auth-card {
        padding: 22px;
        border-radius: 18px;
    }

    h1 {
        font-size: 24px;
    }
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    width: 100%;
    padding-right: 50px;
    box-sizing: border-box;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);

    background: none;
    border: none;
    cursor: pointer;

    font-size: 18px;
    padding: 4px;
}