/* Глобални стилове - минимални */
html {
    height: 100%;
}

body {
    min-height: 100vh;
    background-color: #f4f7f6;
}

/* Специфичен font само за hero и card секциите - НЕ NAVBAR! */
.hero .container *:not(.navbar-glassmorphism):not(.navbar-glassmorphism *) {
    font-family: 'Poppins', sans-serif;
}

/* Секция hero */
.hero,
.registration-hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 40px;
    position: relative;
}

/* Карта за формата */
.card {
    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: 40px 30px; /* По-компактно вътрешно разстояние */
    box-shadow: 0 10px 36px rgba(25, 135, 84, 0.15);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    max-width: 500px; /* По-компактна широчина */
    margin: 0 auto;
}

.card:hover,
.card:focus-within {
    box-shadow: 0 12px 40px rgba(25, 135, 84, 0.3);
    transform: translateY(-2px); /* Леко повдигане при ховър */
}

/* Заглавие на картата */
.card-title {
    color: #d7d9d8;
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-align: center;
}

/* Полета */
.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 rgba(71, 183, 124, 0.5);
    background-color: rgba(255, 255, 255, 0.9);
    color: #015231;
}

/* Етикети */
.form-label {
    font-weight: 300;
    color: #e0e3e1;
    font-size: 1.05rem;
}

/* Бутон - само за формата */
.card .btn-success {
    background: linear-gradient(to right, #3b9656, #1e7868);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    padding: 12px;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    width: 100%;
}

.card .btn-success:hover:not(:disabled) {
    background: linear-gradient(to right, #2e7d44, #156255);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card .btn-success:focus {
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.5);
}

.card .btn-success:disabled {
    background: linear-gradient(to right, #9e9e9e, #757575);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Линк за вход - само за картата */
.card .small {
    color: #fcfcfc;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.card .small:hover {
    color: #b0b0b0;
    text-decoration: underline;
}

/* Terms and Conditions Checkbox */
.form-check {
    padding-left: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.form-check-input {
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin-top: 0.15rem;
    border: 2px solid #4b9f3e;
    border-radius: 4px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.form-check-input:checked {
    background-color: #4b9f3e;
    border-color: #4b9f3e;
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(75, 159, 62, 0.25);
    border-color: #4b9f3e;
}

.terms-label {
    color: #e0e3e1;
    font-size: 0.9rem;
    line-height: 1.5;
    cursor: pointer;
    user-select: none;
    flex: 1;
}

.terms-link {
    color: #4b9f3e;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.terms-link:hover {
    color: #3a9b4a;
    text-decoration: underline;
}

/* Съобщения за грешка и успех */
.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;
    text-align: center;
}

.success-message {
    background-color: #e6f4ea;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 20px;
    font-weight: 500;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(0, 128, 0, 0.05);
    animation: fadeInSlide 0.4s ease-out;
    text-align: center;
}

/* Анимация за съобщения */
@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Разстояния - само за формата */
.card .mb-3 {
    margin-bottom: 1rem;
}

.card .text-center {
    margin-top: 15px;
}

/* Контейнер - само за hero */
.hero .container {
    max-width: 1200px;
}

/* FIX: Защита на navbar brand text от конфликти */
.brand-text-glass {
    display: inline-block !important;
    opacity: 1 !important;
    visibility: visible !important;
    font-family: sans-serif !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    background: linear-gradient(135deg, #19861c 0%, #48a24c 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    color: transparent !important;
}

/* Navbar links и бутони - пълна защита от override */
.navbar-brand-glass,
.navbar-brand-section {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.auth-buttons-glass {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Auth Links - пълни оригинални стилове */
.auth-link-glass {
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    color: white !important;
    text-decoration: none !important;
    padding: 0.5rem 1rem !important;
    border-radius: 20px !important;
    transition: all 0.3s ease !important;
    border: 1px solid transparent !important;
    position: relative !important;
    overflow: hidden !important;
    display: inline-block !important;
}

/* Вход бутон - зелен градиент */
.auth-link-glass:first-of-type {
    background: linear-gradient(135deg, #19861c, #48a24c) !important;
    box-shadow: 0 4px 15px rgba(25, 134, 28, 0.3) !important;
    font-weight: 700 !important;
}

.auth-link-glass:first-of-type:hover {
    background: linear-gradient(135deg, #48a24c, #19861c) !important;
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 8px 25px rgba(25, 134, 28, 0.5) !important;
    color: white !important;
    text-decoration: none !important;
}

/* Регистрация бутон - outline стил */
.auth-link-glass:last-of-type {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 2px solid #19861c !important;
    color: #19861c !important;
    backdrop-filter: blur(8px) !important;
    font-weight: 600 !important;
}

.auth-link-glass:last-of-type::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    border-radius: 20px !important;
    background: linear-gradient(135deg, #19861c, #48a24c) !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
    z-index: -1 !important;
}

.auth-link-glass:last-of-type:hover {
    color: white !important;
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 8px 25px rgba(25, 134, 28, 0.4) !important;
    text-decoration: none !important;
    border-color: transparent !important;
}

.auth-link-glass:last-of-type:hover::after {
    opacity: 1 !important;
}

/* Shimmer ефект за бутоните */
.auth-link-glass::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent) !important;
    transition: left 0.6s ease !important;
    z-index: -1 !important;
}

.auth-link-glass:hover::before {
    left: 100% !important;
}
