* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Arial, sans-serif; }

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #fdf2f8 0%, #f5e6f0 40%, #e8e0f5 100%);
    display: flex;
    flex-direction: column;
    padding: 30px 20px;
}

/* ===== ШАПКА: Название компании + миссия ===== */
.header {
    text-align: center;
    margin-bottom: 30px;
}
.logo-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 8px;
}
.header h1 {
    font-size: 28px;
    color: #8b3a62;
    letter-spacing: 1.5px;
    font-weight: 600;
}
.header p {
    font-size: 14px;
    color: #a88ba0;
    font-style: italic;
    margin-top: 6px;
}

/* ===== ИНФО-БЛОК ===== */
.info {
    text-align: center;
    font-size: 14px;
    color: #7a6a75;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto 30px;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

/* ===== ЗАГОЛОВОК АВТОРИЗАЦИЯ ===== */
h2 {
    text-align: center;
    font-size: 22px;
    color: #8b3a62;
    font-weight: 600;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

/* ===== СИНЯЯ РАМКА ===== */
.form-box {
    border: 2px solid #a86bb5;
    border-radius: 16px;
    padding: 35px 40px;
    max-width: 460px;
    width: 100%;
    margin: 0 auto 20px;
    background: #fff;
    box-shadow: 0 15px 40px rgba(168, 107, 181, 0.2);
    position: relative;
}
.form-box::before {
    content: '';
    position: absolute;
    top: -2px; left: 20px; right: 20px;
    height: 4px;
    background: linear-gradient(90deg, #d67ba8, #a86bb5, #7b8ed6);
    border-radius: 4px;
}

.form-row {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
}
.form-row label {
    width: 90px;
    font-size: 15px;
    color: #8b3a62;
    font-weight: 600;
}
.form-row input[type="text"],
.form-row input[type="password"] {
    flex: 1;
    padding: 11px 15px;
    border: 2px solid #f0e0ea;
    border-radius: 10px;
    font-size: 15px;
    background: #fdf8fb;
    color: #4a3a45;
    transition: all 0.3s;
}
.form-row input:focus {
    border-color: #d67ba8;
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(214, 123, 168, 0.15);
}

/* ===== ЧЕКБОКС ===== */
.checkbox-row {
    display: flex;
    align-items: center;
    margin-left: 90px;
    margin-top: 5px;
    font-size: 13px;
    color: #8a7a85;
}
.checkbox-row input[type="checkbox"] {
    width: 17px;
    height: 17px;
    margin-right: 10px;
    accent-color: #d67ba8;
    cursor: pointer;
}
.checkbox-row label { cursor: pointer; user-select: none; }

/* ===== ССЫЛКИ ===== */
.links {
    display: flex;
    justify-content: space-between;
    max-width: 460px;
    width: 100%;
    margin: 0 auto;
    padding: 0 10px;
    font-size: 14px;
}
.links a, .links button {
    color: #a86bb5;
    text-decoration: none;
    font-size: 14px;
    font-family: inherit;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
    padding: 5px 0;
}
.links a:hover, .links button:hover {
    color: #8b3a62;
    text-decoration: underline;
}

/* ===== ОШИБКА ===== */
.error {
    background: #fdeef3;
    color: #b83a6a;
    border: 1px solid #f8d0e0;
    padding: 10px 15px;
    border-radius: 10px;
    max-width: 460px;
    margin: 0 auto 18px;
    text-align: center;
    font-size: 13px;
}

/* ===== ФУТЕР ===== */
.footer {
    margin-top: auto;
    padding-top: 30px;
    text-align: center;
    font-size: 13px;
    color: #a88ba0;
    line-height: 1.9;
}
.footer a {
    color: #a86bb5;
    text-decoration: none;
}
.footer a:hover { text-decoration: underline; }
.footer p { margin: 3px 0; }
.footer .copyright {
    margin-top: 8px;
    font-size: 12px;
    color: #c8b0c0;
}

/* ===== КНОПКА-РИКРОЛЛ ===== */
.rickroll-link {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 18px;
    background: linear-gradient(90deg, #d67ba8, #a86bb5);
    color: #fff !important;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-family: inherit;
    font-weight: 600;
    text-decoration: none !important;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(168, 107, 181, 0.35);
}
.rickroll-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(168, 107, 181, 0.5);
    color: #fff !important;
}

/* ===== МОДАЛЬНОЕ ОКНО С ВИДЕО ===== */
.rickroll-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.rickroll-modal-content {
    position: relative;
    max-width: 800px;
    width: 100%;
    background: #000;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.rickroll-close {
    position: absolute;
    top: -15px; right: -15px;
    font-size: 28px;
    color: #fff;
    background: #d67ba8;
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1;
    transition: background 0.2s;
    font-weight: bold;
}
.rickroll-close:hover {
    background: #8b3a62;
}