#forgot-toggle {
    display: none;
}


.recovery-info {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s ease;
    background: #f7fafc;
    border-radius: 8px;
    margin-top: 0;
    font-size: 13px;
    color: #4a5568;
    line-height: 1.5;
}


#forgot-toggle:checked ~ .recovery-info {
    max-height: 100px;
    opacity: 1;
    margin-top: 15px;
    padding: 10px;
    border: 1px dashed #cbd5e0;
}


.forgot-label {
    color: #764ba2;
    cursor: pointer;
    text-decoration: none;
}

.forgot-label:hover {
    text-decoration: underline;
}


        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
        }

        body {
            background: #bb6a7e2b;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        .login-card {
            background: #ffffff;
            width: 100%;
            max-width: 400px;
            padding: 40px;
            border-radius: 12px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
            text-align: center;
        }

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #4a5568;
    margin-bottom: 20px;
    display: flex;
    flex-direction: row; /* Выстраивает в ряд */
    align-items: center; /* Центрирует по вертикали относительно друг друга */
    justify-content: center; /* Центрирует всю группу по середине карточки */
    gap: 12px; /* Расстояние между картинкой и текстом */
}

.logo-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo span {
    line-height: 1;
}

.logo-icon img {

    overflow: hidden;
    border-radius: 4px;
}

        h1 {
            font-size: 20px;
            color: #2d3748;
            margin-bottom: 25px;
            font-weight: 500;
        }

        .input-group {
            text-align: left;
            margin-bottom: 20px;
        }

        label {
            display: block;
            font-size: 14px;
            color: #718096;
            margin-bottom: 8px;
            margin-left: 4px;
        }

        input[type="text"],
        input[type="password"] {
            width: 100%;
            padding: 12px 16px;
            border: 2px solid #edf2f7;
            border-radius: 8px;
            outline: none;
            transition: border-color 0.3s ease;
            font-size: 16px;
        }

        input:focus {
            border-color: #AD183D;
        }

        .btn-login {
            width: 100%;
            padding: 14px;
            background: #AD183D;
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.3s ease;
            margin-top: 10px;
        }

        .btn-login:hover {
            background: #AD183D;
        }

        .footer-links {
            margin-top: 25px;
            display: flex;
            justify-content: space-between;
            font-size: 13px;
        }

        .footer-links a {
            color: #718096;
            text-decoration: none;
        }

        .footer-links a:hover {
            text-decoration: underline;
        }

        @media (max-width: 480px) {
            .login-card {
                padding: 30px 20px;
            }
        }
.error-message {
    background-color: #fff5f5;
    color: #c53030;
    border: 1px solid #feb2b2;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    display: block;


}

.loader {
    display: none;
    margin: 10px auto;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #AD183D;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}