/* /assets/login.css (з винесеним логотипом) */

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #0a0a0a;
    color: #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Обгортка для всього контенту на сторінці */
.login-wrapper {
    width: 100%;
    max-width: 500px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Логотип (тепер поза контейнером форми) */
.login-header {
    margin-bottom: 2rem;
    text-align: center;
}
.login-logo {
    font-size: 2.2rem; /* Зменшуємо розмір лого */
    font-weight: bold;
    color: #fff;
    text-decoration: none !important;
}
.login-logo .ll {
    color: #E8BD2C;
}

/* Контейнер форми */
.login-container {
    background-color: #1c1c1e;
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid #2a2a2a;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    width: 100%;
    text-align: center;
}

h1 {
    font-size: 1.8rem;
    margin-top: 0; /* Прибираємо верхній відступ, бо лого вже окремо */
    margin-bottom: 1.5rem;
    color: #ffffff;
    font-weight: 600;
}

.error, .success {
    color: #ffffff;
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}
.error { background-color: #dc3545; }
.success { background-color: #28a745; }

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}
.form-group label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: #aaa;
}

input[type="text"], 
input[type="password"] {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #444;
    background-color: #2c2c2e;
    color: #ffffff;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
input[type="text"]:focus, 
input[type="password"]:focus {
    outline: none;
    border-color: #E8BD2C;
    box-shadow: 0 0 0 3px rgba(232, 189, 44, 0.2);
}

button {
    border: none;
    border-radius: 8px;
    padding: 14px 20px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    width: 100%;
    display: block;
}

.btn-primary {
    background: #E8BD2C;
    color: #000;
    margin-bottom: 10px;
}
.btn-primary:hover {
    background: #d1a826;
    box-shadow: 0 0 15px rgba(232, 189, 44, 0.4);
}

.btn-secondary {
    background: #333;
    color: #fff;
}
.btn-secondary:hover {
    background: #444;
}

/* Адаптивність для мобільних */
@media (max-width: 480px) {
    body {
        align-items: center; /* Повертаємо центрування */
    }
    .login-container {
        padding: 2rem 1.5rem;
        border: none;
        box-shadow: none;
        background-color: transparent;
    }
    .login-wrapper {
        padding-top: 0;
    }
}

/* Додаємо email до існуючих стилів */
input[type="text"], 
input[type="password"],
input[type="email"] { /* <-- Додано input[type="email"] */
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #444;
    background-color: #2c2c2e;
    color: #ffffff;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

/* Додаємо :focus для email */
input[type="text"]:focus, 
input[type="password"]:focus,
input[type="email"]:focus { /* <-- Додано input[type="email"]:focus */
    outline: none;
    border-color: #E8BD2C;
    box-shadow: 0 0 0 3px rgba(232, 189, 44, 0.2);
}


/* === Нові стилі для галочки згоди === */

.form-group-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group-checkbox input[type="checkbox"] {
    /* Ховаємо стандартну галочку */
    appearance: none;
    -webkit-appearance: none;
    
    /* Розміри кастомної галочки */
    height: 18px;
    width: 18px;
    min-width: 18px; /* Для flexbox */
    
    /* Стилі */
    background-color: #2c2c2e;
    border: 1px solid #444;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 12px;
    position: relative;
    top: -1px; /* Вирівнювання по вертикалі */
    transition: background-color 0.2s, border-color 0.2s;
}

/* Стиль при наведенні */
.form-group-checkbox input[type="checkbox"]:hover {
    border-color: #666;
}

/* Стиль при фокусі */
.form-group-checkbox input[type="checkbox"]:focus {
    outline: none;
    border-color: #E8BD2C;
    box-shadow: 0 0 0 3px rgba(232, 189, 44, 0.2);
}

/* Стиль коли галочка вибрана */
.form-group-checkbox input[type="checkbox"]:checked {
    background-color: #E8BD2C;
    border-color: #E8BD2C;
}

/* Створюємо "галочку" всередині за допомогою псевдо-елемента */
.form-group-checkbox input[type="checkbox"]:checked::before {
    content: '';
    display: block;
    width: 5px;
    height: 10px;
    border: solid #000; /* Колір галочки */
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    position: absolute;
    left: 5px;
    top: 1px;
}

/* Стилі для тексту біля галочки */
.form-group-checkbox label {
    font-size: 0.85rem;
    color: #aaa;
    margin-bottom: 0; /* Скидаємо відступ */
    cursor: pointer;
}

/* Стилі для посилань в тексті */
.form-group-checkbox label a {
    color: #E8BD2C;
    text-decoration: none;
    transition: text-decoration 0.2s;
}

.form-group-checkbox label a:hover {
    text-decoration: underline;
}

/* Стилі для блоку з додатковими посиланнями */
.form-extra-links {
    text-align: right; /* Вирівнюємо по правому краю */
    margin-bottom: 20px; /* Відступ перед кнопками */
    margin-top: -10px; /* Трохи піднімаємо, щоб було ближче до поля паролю */
}

.form-extra-links a {
    color: #999; /* Нейтральний сірий колір */
    font-size: 0.9em;
    text-decoration: none;
    transition: color 0.2s;
}

.form-extra-links a:hover {
    color: #fff; /* Робимо білим при наведенні */
    text-decoration: underline;
}

/* Стилі для плашок повідомлень (donation та invite) */
.donation-notice,
.invite-notice {
    padding: 16px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: left;
    border: 1px solid;
}

.donation-notice {
    background: rgba(232, 189, 44, 0.1);
    border-color: rgba(232, 189, 44, 0.3);
}

.donation-notice strong {
    color: #E8BD2C;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    margin-bottom: 6px;
}

.donation-notice small {
    color: #aaa;
    font-size: 0.85rem;
    display: block;
    font-weight: normal;
}

.invite-notice {
    background: rgba(232, 189, 44, 0.08);
    border-color: rgba(232, 189, 44, 0.25);
}

.invite-notice strong {
    color: #E8BD2C;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    margin-bottom: 6px;
}

.invite-notice small {
    color: #aaa;
    font-size: 0.85rem;
    display: block;
    font-weight: normal;
}