/* Глобални стилове */
html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    font-family: 'Poppins', sans-serif;
}

main {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    height: 100vh;
    margin: 0;
    flex: 1;
}

/* Стъклен ефект за формата – коригирана прозрачност и размер */
form.mx-auto {
    max-width: 600px; /* По-голяма широчина */
    width: 100%;
    background: rgba(25, 135, 84, 0.08); /* По-прозрачна зеленикава основа */
    border: 3px solid rgb(75, 159, 62); /* По-фин контур */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 50px 40px; /* По-широко вътрешно разстояние */
    box-shadow: 0 10px 36px rgba(25, 135, 84, 0.15);
    transition: box-shadow 0.3s ease;
}

/* Заглавие във формата */
form.mx-auto h2 {
    color: #d7d9d8;
    margin-bottom: 25px;
    text-align: center;
}

/* Фокус и ефекти */
form.mx-auto:hover,
form.mx-auto:focus-within {
    box-shadow: 0 12px 40px 0 rgba(25, 135, 84, 0.3);
}

/* Полета */
.form-control {
    font-size: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(159, 173, 167, 0.3);
    background-color: rgba(255, 255, 255, 0.7);
    transition: border-color 0.3s ease, background-color 0.3s ease;
    color: #198754;
}

.form-control:focus {
    border-color: #c4cbc8;
    box-shadow: 0 0 0 0.2rem rgb(71, 183, 124);
    background-color: rgba(255, 255, 255, 0.9);
    color: #015231;
}

/* Етикети */
.form-label {
    font-weight: 600;
    color: #e0e3e1;
    font-size: 1.05rem;
}

/* Чекбокс */
.form-check-label {
    font-size: 0.875rem;
    color: #d7d7d7;
}

/* Линк за забравена парола */
.small {
    color: #fcfcfc;
    text-decoration: none;
    transition: color 0.2s ease;
}

.small:hover {
    color: #656565;
    text-decoration: underline;
}

/* Бутон */
.btn-success {
    background: linear-gradient(to right, #3b9656, #1e7868);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    padding: 12px 0;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.btn-success:hover {
    background-color: #145c32;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-success:focus {
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.5);
}

/* Разстояние между елементи */
.mb-3 {
    margin-bottom: 1rem;
}

.text-center {
    margin-top: 10px;
    text-align: center;
}

.hero {
    padding-top: 200px;
    padding-bottom: 40px;
}

/* Съобщения за грешки и състояния */
.error-message {
    background-color: #ffe5e5;
    color: #a94442;
    border: 1px solid #f5c2c2;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 20px;
    font-weight: 500;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.05);
    animation: fadeInSlide 0.4s ease-out;
}

.alert-success,
.alert-warning {
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
}

/* Анимация за съобщения */
@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
