/* ==========================================================
   === PODSTAWOWE STYLE DLA STRON AUTH + KONTAKT ===
   (tło, karty, kolory, przyciski, alerty, responsywność)
   ========================================================== */

/* === Tło z kropkami (domyślne dla loginu i kontaktu) === */
.auth-one-bg {
    position: relative;
    background-color: #ffffff !important;
    background-image: radial-gradient(rgba(15, 91, 40, 0.12) 1.8px, transparent 2px);
    background-size: 22px 22px;
    min-height: 100vh;
}

/* === Główny kontener – wyśrodkowanie pionowe === */
.auth-page-content {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* === Kolory brandowe (zielony motyw) === */
:root {
    --brand-primary: #0f5b28;
    --brand-primary-hover: #157a34;
    --brand-success-light: #b7e0af;
    --brand-success-border: #9acc8f;
}

/* === Nagłówki i kolory tekstów === */
.auth-page-content .text-primary {
    color: var(--brand-primary) !important;
}

.auth-page-content .text-muted {
    color: #4e5d4e !important;
}

/* === Karty (np. logowanie, kontakt) === */
.card,
.contact-card {
    border: 1px solid var(--brand-success-border);
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(15, 91, 40, 0.1);
    background-color: #ffffff;
}

/* === Pola formularzy === */
.form-control:focus,
.form-select:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 0.2rem rgba(15, 91, 40, 0.15);
}

/* === Przyciski (zielone, brandowe) === */
.btn-success,
.btn-brand-primary {
    background-color: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
    color: #ffffff !important;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
}

.btn-success:hover,
.btn-brand-primary:hover {
    background-color: var(--brand-primary-hover) !important;
    transform: translateY(-1px);
}

/* === Alerty standardowe === */
.alert-success {
    background-color: var(--brand-success-light);
    color: var(--brand-primary);
    border: 1px solid var(--brand-success-border);
}

.alert-danger {
    background-color: #ffe8e8;
    color: #a33b3b;
    border: 1px solid #ffb3b3;
}

/* === Linki w kolorach brandowych === */
a.text-primary {
    color: var(--brand-primary) !important;
}

a.text-primary:hover {
    color: var(--brand-primary-hover) !important;
}

/* === Alerty dwukolorowe (brandowe) === */
.alert-primary {
    border: 1px solid #9acc8f !important;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.alert-primary .alert-body {
    background-color: #b7e0af !important; /* pastelowa zieleń */
    color: #122738;
    padding: 1rem 1.25rem;
}

.alert-primary .alert-heading {
    color: #0f5b28 !important;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.alert-primary .alert-content {
    background-color: #0f5b28 !important;
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 0.75rem 1.1rem;
    font-size: 0.87rem;
    line-height: 1.4;
}

/* === Responsywność (mobile padding) === */
@media (max-width: 991px) {
    .auth-page-content {
        padding: 2rem 0;
    }
}

/* === Overlay ładowania === */
#loading-overlay {
    background: rgba(18, 39, 56, 0.85) !important; /* półprzezroczysty granat */
}
/* === Animacja obracania logo w overlayu === */
.rotating-image {
    width: 70px;
    height: 70px;
    animation: rotate 1.5s linear infinite;
    filter: drop-shadow(0 0 6px rgba(255,255,255,0.5));
}

@keyframes rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}
