* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    background-color: #0d0d11;
}

body {
    position: relative;
    overflow: hidden;
    background-image: 
        url("img/pattern_space.svg"), 
        radial-gradient(circle at 50% 50%, #141938 0%, #0d0d11 100%);
    background-repeat: repeat, no-repeat;
    background-size: 280px, auto;
    background-position: 0 0, 0 0;
}

body::before,
body::after {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(43, 58, 166, 0.4) 0%, rgba(0,0,0,0) 70%);
    filter: blur(80px);
    z-index: 1;
    pointer-events: none;
}
body::before {
    top: -10%;
    left: -10%;
    background: radial-gradient(circle, rgba(43, 137, 166, 0.3) 0%, rgba(0,0,0,0) 70%);
}
body::after {
    bottom: -10%;
    right: -10%;
    background: radial-gradient(circle, rgba(166, 43, 160, 0.25) 0%, rgba(0,0,0,0) 70%);
}

/* Стилизация фонового SVG */
.bg-pattern svg path,
.bg-pattern svg line,
.bg-pattern svg polyline,
.bg-pattern svg polygon,
.bg-pattern svg circle,
.bg-pattern svg ellipse {
    stroke: #2b3aa6;
    stroke-width: 1.2;
    fill: #ffffff;
    opacity: 0.35;
}

.content {
    position: relative;
    z-index: 5;
    color: #ffffff;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20 px;
}

.auth {
    padding: 50px 40px;
    border-radius: 32px;

    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.09);

    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);

    box-shadow: 
        0 24px 80px rgba(0, 0, 0, 0.7),
        0 4px 20px rgba(43, 58, 166, 0.15);

    width: 100%;
    max-width: 500px;
    height: 680px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 35px;

    position: relative;
    overflow: hidden;
    transition: border-color 0.4s, box-shadow 0.4s;
}

.auth:hover {
    border-color: rgba(43, 137, 166, 0.25);
    box-shadow: 
        0 24px 80px rgba(0, 0, 0, 0.8),
        0 4px 30px rgba(43, 137, 166, 0.25);
}

/* HEADER */
.header {
    width: 100%;
    display: flex;
    justify-content: space-between;
        align-items: center;
    margin-bottom: 10px;
}

.button {
    background: transparent;
    border: none;
    color: white;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s, transform 0.2s;
}

.button:hover {
    opacity: 1;
    transform: translateY(-1px);
}

/* CENTER BLOCK */
.center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px; /* Увеличил отступ между логотипом, заголовоком и инпутами */
    width: 100%;
}

/* FUTURE LOGO WRAPPER */
.logo {
    width: 84px;
    height: 84px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    position: relative;
    transition: 0.3s ease;
}

.logo::before {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.logo img {
    width: 54px;
    height: 54px;
    display: block;
    position: relative;
    z-index: 2;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}


.subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 8px;
    text-align: center;
}

.hint {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    line-height: 1.5;
    margin-top: 8px;
    max-width: 320px;
}

.hint a {
    color: rgba(255, 255, 255, 0.55);
    font-weight: 600;
    text-decoration: none;
}

.qr-link {
    display: block;
    text-align: center;
    color: #5b7cf6;
    font-size: 14px;
    text-decoration: none;
    margin-top: 16px;
    transition: opacity 0.2s;
}

.qr-link:hover {
    opacity: 0.75;
}

.legal {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
    text-align: center;
    line-height: 1.6;
    margin-top: 20px;
    max-width: 280px;
}

.legal a {
    color: rgba(255, 255, 255, 0.55);
    font-weight: 600;
    text-decoration: none;
}

.legal a:hover {
    color: white;
}

.title {
    word-break: keep-all;
    max-width: 280px;
    line-height: 1.3;
}

.title {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.5px;
    /* Дорогой градиент на текст заголовка */
    background: linear-gradient(to bottom, #ffffff, #b5bdff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* SMART INTERACTIVE INPUT */
.input {
    width: 100%;
    max-width: 320px; /* Чуть шире для удобства ввода */
    padding: 14px 16px;
    border-radius: 14px;

    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(13, 13, 17, 0.5);

    color: white;
    font-size: 15px;
    outline: none;
    text-align: center; /* Чтобы номер/код вводился красиво по центру */

    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 16px;
}

.input::placeholder {
    color: rgba(255, 255, 255, 0.35);
    transition: opacity 0.2s;
}

.input:focus::placeholder {
    opacity: 0.15;
}

.input:focus {
    border-color: #3a4bd1;
    background: rgba(13, 13, 17, 0.8);
    box-shadow: 
        0 0 0 3px rgba(43, 58, 166, 0.25),
        inset 0 0 10px rgba(43, 58, 166, 0.2);
    transform: scale(1.02); /* Легкий high-tech микро-зум */
}

.login-btn {
    width: 100%;
    max-width: 320px;
    padding: 14px;
    border-radius: 14px;
    border: none;

    background: linear-gradient(135deg, #2b3aa6 0%, #1c2780 100%);
    color: #ffffff;

    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: -0.1px;

    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(43, 58, 166, 0.4);

    margin-top: 16px;
}

.login-btn:hover {
    background: linear-gradient(135deg, #3a4bd1 0%, #2b3aa6 100%);
    box-shadow: 0 6px 24px rgba(58, 75, 209, 0.6);
    transform: translateY(-2px); /* Кнопка приподнимается при наведении */
}

.login-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(43, 58, 166, 0.4);
}

/* TECH QR BLOCK */
.qr {
    width: 180px;
    height: 180px;
    background: #ffffff;
    border-radius: 20px;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}
.qr:hover {
    transform: scale(1.03) rotate(1deg);
}




/* FOOTER */
.footer {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    opacity: 0.4;
    transition: opacity 0.3s;
    margin-top: 10px;
}

#step-phone,
#step-sms,
#step-2fa {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.footer:hover {
    opacity: 0.8;
}

.iconic { 
    width: 20px;
    height: 20px; 
    vertical-align: middle;
    transform: translateY(-45px);
}

.hidden {
    display: none !important;
}

@media (max-width: 600px) {
    .auth {
        padding: 30px 20px;
        height: auto;
        min-height: 600px;
        border-radius: 24px;
    }

    .logo {
        width: 72px;
        height: 72px;
    }

    .title {
        font-size: 20px;
    }
}