* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    position: relative;
}

.tg-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: radial-gradient(circle at 20% 30%, rgba(85, 142, 213, 0.3) 0%, transparent 45%),
                radial-gradient(circle at 80% 70%, rgba(125, 90, 210, 0.25) 0%, transparent 50%),
                linear-gradient(145deg, #0e1622 0%, #1a2538 100%);
    background-attachment: fixed;
}

.tg-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 60%, rgba(70, 130, 200, 0.2) 0%, transparent 50%),
                radial-gradient(circle at 70% 20%, rgba(100, 80, 220, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.tg-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMDAiIGhlaWdodD0iMzAwIj48ZmlsdGVyIGlkPSJmIj48ZmVUdXJidWxlbmNlIHR5cGU9ImZyYWN0YWxOb2lzZSIgYmFzZUZyZXF1ZW5jeT0iLjc0IiBudW1PY3RhdmVzPSIzIiAvPjwvZmlsdGVyPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbHRlcj0idXJsKCNmKSIgb3BhY2l0eT0iMC4wMjUiIC8+PC9zdmc+');
    opacity: 0.3;
    pointer-events: none;
}

/* Шапка с кнопкой домой и логотипом */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    z-index: 10;
    background: transparent;
    pointer-events: none;
}

.header-left, .header-right {
    pointer-events: auto;
}

.home-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(23, 33, 43, 0.6);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border-radius: 30px;
    border: 1px solid rgba(88, 133, 193, 0.4);
    color: #9bc0ff;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.home-btn:hover {
    background: rgba(40, 55, 75, 0.8);
    border-color: #7ab2ff;
    transform: scale(1.05);
}

.home-btn svg {
    width: 26px;
    height: 26px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.logo {
    font-size: 2.2rem;
    font-weight: 620;
    background: linear-gradient(145deg, #ffffff, #c9e2ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 15px rgba(0,160,255,0.4);
}

/* Основной контент — без контейнера, просто поля на фоне */
.content {
    width: 100%;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    z-index: 5;
}

.welcome-text {
    color: #f0f6ff;
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    letter-spacing: -0.3px;
}

.description {
    color: #b0c9f0;
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 8px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
    opacity: 0.9;
}

.field {
    width: 100%;
}

.field label {
    display: block;
    color: #d1e2ff;
    margin-bottom: 8px;
    font-size: 0.95rem;
    font-weight: 450;
    letter-spacing: 0.2px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
    opacity: 0.9;
}

.input-wrapper {
    display: flex;
    align-items: center;
    background: rgba(12, 20, 30, 0.6);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1.5px solid rgba(72, 118, 178, 0.5);
    border-radius: 24px;
    padding: 12px 20px;
    transition: border-color 0.15s, box-shadow 0.15s;
    width: 100%;
}

.input-wrapper:focus-within {
    border-color: #7ab2ff;
    box-shadow: 0 0 0 3px rgba(90, 160, 255, 0.25);
}

.input-icon {
    display: flex;
    align-items: center;
    margin-right: 12px;
    color: #85b1f0;
}

.input-icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 1.8;
    fill: none;
}

.input-wrapper input {
    background: transparent;
    border: none;
    outline: none;
    width: 100%;
    font-size: 1rem;
    color: #f0f8ff;
    padding: 4px 0;
}

.input-wrapper input::placeholder {
    color: rgba(120, 160, 210, 0.6);
    font-weight: 320;
}

/* КНОПКА ОТПРАВИТЬ КОД */
.reset-btn {
    width: 100%;
    background: transparent;
    border: 2px solid rgba(120, 180, 255, 0.7);
    border-radius: 40px;
    padding: 16px 20px;
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 0 15px rgba(90, 160, 255, 0.3);
    margin-top: 16px;
}

.reset-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

.reset-btn:hover {
    border-color: #a0ccff;
    color: #ffffff;
    box-shadow: 0 0 25px rgba(100, 180, 255, 0.6);
    transform: translateY(-2px);
    background: rgba(60, 120, 210, 0.2);
}

.reset-btn:hover::before {
    left: 100%;
}

.reset-btn:active {
    transform: translateY(1px);
    box-shadow: 0 0 15px rgba(100, 180, 255, 0.4);
    border-color: #7ab2ff;
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.reset-btn:hover .btn-icon {
    transform: translateX(5px);
}

.btn-icon svg {
    width: 22px;
    height: 22px;
    stroke: white;
    stroke-width: 2.2;
    fill: none;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

.info-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #aac3e6;
    font-size: 0.96rem;
    padding: 8px 4px;
    border-top: 1px solid rgba(72, 108, 158, 0.3);
    margin-top: 8px;
}

.info-links a {
    color: #c9e0ff;
    text-decoration: none;
    font-weight: 470;
    border-bottom: 1px dotted rgba(140, 180, 240, 0.6);
    transition: color 0.2s;
}

.info-links a:hover {
    color: white;
    border-bottom-color: #aac9ff;
}

@media (max-width: 480px) {
    .header { padding: 12px 16px; }
    .logo { font-size: 2rem; }
    .welcome-text { font-size: 1.6rem; }
}

@media (prefers-color-scheme: light) {
    .tg-background {
    background: radial-gradient(circle at 30% 40%, rgba(100, 160, 230, 0.35) 0%, transparent 45%),
                radial-gradient(circle at 80% 70%, rgba(130, 110, 220, 0.3) 0%, transparent 50%),
                linear-gradient(145deg, #d4e2f5 0%, #b5cef0 100%);
    }
    .welcome-text { color: #0b1b30; }
    .description { color: #1f3a60; }
    .field label { color: #1f3a60; }
    .input-wrapper { background: rgba(255, 255, 255, 0.7); }
    .input-wrapper input { color: #0a1a2a; }
    .input-wrapper input::placeholder { color: #6f91bc; }
    .info-links a { color: #1f4880; }
    .logo { background: linear-gradient(145deg, #0f2b50, #264d82); -webkit-background-clip: text; background-clip: text; }
    .home-btn { background: rgba(220, 235, 255, 0.7); color: #1f3a60; border-color: #6f91bc; }
    
    .reset-btn {
    color: #0b1b30;
    border-color: rgba(30, 80, 150, 0.5);
    box-shadow: 0 0 15px rgba(30, 100, 200, 0.2);
    }
    .reset-btn:hover {
    background: rgba(70, 130, 220, 0.15);
    border-color: #2b68aa;
    color: #0b1b30;
    }
    .btn-icon svg {
    stroke: #0b1b30;
    }
}