/* ===== ОБЩИЕ СБРОСЫ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;

    /* ====== ФОНОВОЕ ИЗОБРАЖЕНИЕ ====== */
    /* ЗАМЕНИТЕ URL НА СВОЁ ФОТО */
    background-image: url('cat.jfif');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

/* ===== ШАПКА ===== */
.site-header {
    background: rgba(30, 74, 59, 0.85);
    color: #fff;
    padding: 22px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(2px);
}
.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 20px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.logo i {
    font-size: 2.5rem;
    color: #b8e6b0;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}
.header-tagline {
    font-size: 1.05rem;
    font-weight: 300;
    opacity: 0.95;
    text-align: center;
    display: flex;
    align-items: center;
    gap: 8px;
}
.header-social a {
    color: #fff;
    font-size: 1.4rem;
    margin-left: 12px;
    transition: color 0.2s, transform 0.2s;
    opacity: 0.8;
}
.header-social a:hover {
    color: #b8e6b0;
    transform: scale(1.1);
    opacity: 1;
}

/* ===== ОСНОВНОЙ КОНТЕНТ ===== */
.site-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
}

/* ===== БЛОК АВТОРИЗАЦИИ (уменьшен, полупрозрачный) ===== */
.login-card {
    max-width: 520px;
    width: 100%;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(4px);
    border-radius: 28px;
    box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.35);
    padding: 24px 28px 20px;
    transition: transform 0.25s ease;
}
.login-card:hover {
    transform: translateY(-3px);
}

/* ===== МОТИВАЦИОННЫЙ БЛОК ===== */
.motivation-block {
    display: flex;
    gap: 14px;
    background: rgba(240, 250, 245, 0.85);
    border-radius: 14px;
    padding: 14px 18px;
    margin-bottom: 20px;
    border-left: 4px solid #2a8b6a;
}
.motivation-block i {
    font-size: 1.8rem;
    color: #2a8b6a;
    flex-shrink: 0;
    margin-top: 2px;
}
.motivation-block h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1d3e30;
    margin-bottom: 2px;
}
.motivation-block p {
    font-size: 0.88rem;
    line-height: 1.4;
    color: #1d3e30;
    margin-bottom: 2px;
}
.motivation-highlight {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    color: #1a6e4a;
    font-size: 0.88rem;
}
.motivation-highlight i {
    font-size: 0.9rem;
    color: #27ae60;
}

/* ===== ФОРМА ===== */
.login-form .form-group {
    margin-bottom: 14px;
}
.login-form label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    color: #1e3e30;
    margin-bottom: 3px;
}
.login-form label i {
    width: 20px;
    color: #2a8b6a;
    margin-right: 4px;
}
.required-star {
    color: #c0392b;
    margin-left: 2px;
}

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.input-wrap input {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid #dce8e0;
    border-radius: 12px;
    font-size: 0.95rem;
    background: #fafdfb;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
.input-wrap input:focus {
    border-color: #2a8b6a;
    box-shadow: 0 0 0 4px rgba(42, 139, 106, 0.15);
    background: #fff;
}

.valid-icon {
    display: none;
    font-size: 0.9rem;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}
.valid-icon.fa-check { color: #27ae60; }
.valid-icon.fa-times { color: #e74c3c; }
.input-wrap input:valid:not(:placeholder-shown) ~ .valid-icon.fa-check {
    display: inline-block;
}
.input-wrap input:invalid:not(:placeholder-shown) ~ .valid-icon.fa-times {
    display: inline-block;
}

.error-msg {
    color: #c0392b;
    font-size: 0.8rem;
    margin-top: 4px;
    display: none;
    align-items: center;
    gap: 6px;
}
.input-wrap input:invalid:not(:placeholder-shown) ~ .error-msg {
    display: flex;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0 14px;
    font-size: 0.9rem;
    color: #1d3e30;
}
.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #2a8b6a;
    cursor: pointer;
}
.checkbox-group label {
    font-weight: 400;
    cursor: pointer;
}

.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2px;
}
.btn {
    flex: 1 1 auto;
    padding: 10px 14px;
    border: none;
    border-radius: 36px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    min-width: 80px;
}
.btn-primary {
    background: #1e4a3b;
    color: #fff;
    box-shadow: 0 4px 10px rgba(30, 74, 59, 0.25);
}
.btn-primary:hover {
    background: #14382d;
    box-shadow: 0 6px 14px rgba(30, 74, 59, 0.35);
    transform: scale(1.01);
}
.btn-outline {
    background: transparent;
    color: #1e4a3b;
    border: 2px solid #1e4a3b;
}
.btn-outline:hover {
    background: #eaf3ed;
}
.btn-ghost {
    background: transparent;
    color: #4d7a66;
    border: 2px solid transparent;
}
.btn-ghost:hover {
    background: #ecf6f0;
    border-color: #cde0d5;
}

/* ===== ФУТЕР ===== */
.site-footer {
    background: rgba(247, 251, 249, 0.9);
    backdrop-filter: blur(2px);
    border-top: 1px solid rgba(213, 228, 221, 0.6);
    padding: 28px 30px 32px;
    margin-top: auto;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px 30px;
    font-size: 1rem;
    color: #1d3e30;
}
.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 28px;
}
.contact-info i {
    color: #2a8b6a;
    width: 22px;
    font-size: 1.1rem;
}
.contact-info a {
    color: #1d3e30;
    text-decoration: none;
    border-bottom: 1px dotted transparent;
    transition: border-color 0.2s;
}
.contact-info a:hover {
    border-color: #2a8b6a;
}
.footer-social a {
    color: #1d3e30;
    font-size: 1.6rem;
    margin-left: 14px;
    transition: color 0.2s, transform 0.2s;
    opacity: 0.7;
}
.footer-social a:hover {
    color: #2a8b6a;
    transform: scale(1.1);
    opacity: 1;
}
.copy {
    font-size: 0.9rem;
    opacity: 0.6;
    white-space: nowrap;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 700px) {
    .header-container {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 6px;
    }
    .header-social {
        text-align: center;
        margin-top: 4px;
    }
    .header-social a {
        margin: 0 8px;
    }
    .login-card {
        padding: 20px 16px;
        max-width: 95%;
    }
    .motivation-block {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px 14px;
    }
    .btn-group {
        flex-direction: column;
    }
    .btn {
        min-width: unset;
        width: 100%;
    }
    .footer-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    .contact-info {
        flex-direction: column;
        gap: 8px;
    }
    .footer-social {
        width: 100%;
        text-align: left;
    }
    .footer-social a {
        margin-left: 0;
        margin-right: 16px;
    }
    .copy {
        white-space: normal;
    }
}