/* Фон */
body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: #1e1e1e url("../images/pattern.svg") repeat;
    color: #e0f7f1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Контейнер формы */
.form-container {
    background: rgba(0, 0, 0, 0.85);
    padding: 2rem;
    border-radius: 1rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 255, 150, 0.2);
}

/* Логотип */
.logo img {
    width: 200px;
    margin-bottom: 0.5rem;
}

/* Заголовок */
.title {
    color: #00cc99;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

/* Поля ввода */
.input-wrapper {
    position: relative;
    max-width: 300px;
    margin: 0.5rem auto; 
}

input {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-bottom: 2px solid #00cc99;
    background: transparent;
    color: #e0f7f1;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

input:focus {
    border-color: #00ffcc;
}

/* Кнопка */
.btn {
    margin-top: 1rem;
    padding: 0.75rem;
    width: 100%;
    background: #00cc99;
    border: none;
    border-radius: 2rem;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.btn:hover {
    background: #00ffcc;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #00cc99;
    font-size: 0.9rem;
    user-select: none;
}

/* Текст соглашения */
.agreement {
    font-size: 0.75rem;
    color: #aaa;
    margin-top: 1rem;
}

.agreement a {
    color: #00cc99;
    text-decoration: none;
}

.agreement a:hover {
    text-decoration: underline;
}

/* Ссылка "Уже есть аккаунт" */
.login-link {
    margin-top: 1rem;
}

.login-link a {
    color: #00cc99;
    text-decoration: none;
    font-weight: bold;
}

.login-link a:hover {
    text-decoration: underline;
}

/* Адаптив */
@media (max-width: 480px) {
    .form-container {
        padding: 1.5rem;
        border-radius: 0.75rem;
    }

    .title {
        font-size: 1.2rem;
    }

    input, .btn {
        font-size: 0.9rem;
        padding: 0.6rem;
    }
}

.messages {
    margin: 15px 0;
}

.message {
    padding: 10px 15px;
    margin-bottom: 10px;
    border-radius: 4px;
    font-size: 14px;
}

.message.error {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid #dc3545;
}

.message.success {
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border: 1px solid #28a745;
}

.field-errors {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
}

input.error {
    border-color: #dc3545 !important;
}

/* Terms */
.terms-container {
    background: rgba(0, 0, 0, 0.85);
    padding: 2rem;
    border-radius: 1rem;
    max-width: 800px;   /* шире чем форма регистрации */
    width: 90%;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 255, 150, 0.2);
}

.terms-section {
    margin: 1.5rem 0;
    text-align: center;
}

.terms-section h2 {
    color: #00cc99;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.terms-section ol {
    margin: 0 auto;
    padding-left: 1.5rem;
    display: inline-block;
    text-align: left;
    color: #e0f7f1;
    line-height: 1.5;
}

/* Красивый разделитель */
.divider {
    height: 2px;
    background: linear-gradient(to right, transparent, #00cc99, transparent);
    margin: 1.5rem auto;
    width: 80%;
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(0, 204, 153, 0.6);
}

/* Адаптив под мобильные */
@media (max-width: 480px) {
    .terms-section h2 {
        font-size: 1.1rem;
    }

    .terms-section ol {
        padding-left: 1rem;
        font-size: 0.9rem;
    }

    .divider {
        width: 100%;
    }
}

/* Вложенные списки */
.terms-section ol ol {
    margin-top: 0.5rem;
    padding-left: 1.5rem;
    list-style-type: decimal; /* будут 1.1, 1.2 … */
    font-size: 0.95rem;
    opacity: 0.9;
}

.terms-section ol ol ol {
    font-size: 0.9rem;
    margin-left: 25px;
    list-style-type: lower-alpha; /* можно поменять на decimal или roman */
}

.terms-section ol ol ol li {
    margin: 4px 0;
}