/* --- GŁÓWNY KONTENER MODALA (Glassmorphism) --- */
.AuthModalPanel {
    position: absolute; /* Zmiana na fixed, by idealnie trzymał się ekranu podczas przewijania */
    top: 80px;
    left: 50%;
    transform: translateX(-50%); /* Perfekcyjne wyśrodkowanie bez względu na szerokość */
    min-width: 420px;
    width: auto;
    height: auto;
    padding: 40px 45px;
    
    /* Efekt dymionego szkła */
    background-color: rgba(24, 32, 40, 0.65); 
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px); /* Wsparcie dla Safari */
    
    /* Wykończenie premium */
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    
    z-index: 300000;
    display: none;
    color: #ffffff;
    font-family: inherit;
    transition: opacity 0.3s ease-in-out;
}

/* --- PRZYCISK ZAMYKANIA (Krzyżyk) --- */
.AuthModalCloseBtn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    border-radius: 18px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 32px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.AuthModalCloseBtn:hover {
    width: 36px;
    height: 36px;
    border-radius: 18px;
    background-color: rgba(255, 100, 55, 0.1);
    color: rgba(255, 100, 55, 0.6);
    transform: scale(1.1) rotate(90deg); /* Delikatny smaczek animacji przy najechaniu */
}

/* --- STREFA NAGŁÓWKA --- */
.AuthModalHeader {
    text-align: center;
    margin-bottom: 30px; /* Robi oddech przed formularzem */
}

/* --- STREFA ZAWARTOŚCI (Formularz) --- */
.AuthModalContent {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px; /* Automatyczne, równe odstępy między wstrzykniętymi inputami i buttonami */
}










input {
    border-radius: 8px !important;
}

/* --- POLA TEKSTOWE --- */
.AuthInputWrapper {
    position: relative;
    width: 100%;
}

     /* --- POLA TEKSTOWE --- */
.AuthInput {
    width: 100%;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2) !important; /* Mocno przyciemniona, bardzo subtelna ramka */
    border-radius: 8px;
    color: #ffffff;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* Stan aktywny (gdy klient klika/pisze) */
.AuthInput:focus {
    border-color: #3087ff !important;
    outline: none;
    background: rgba(0, 0, 0, 0.7);
    box-shadow: 0 0 10px rgba(48, 135, 255, 0.2);
}

/* Stan WYPEŁNIONY (gdy pole nie jest już puste) */
.AuthInput:not(:placeholder-shown) {
    border-color: rgba(255, 255, 255, 0.15); /* Ramka staje się lekko widoczna po wpisaniu danych */
    background: rgba(0, 0, 0, 0.3);
}

/* Placeholder (podpowiedź) */
.AuthInput::placeholder {
    color: rgba(255, 255, 255, 0.3);
    font-weight: 300;
}

.AuthEyeIcon {
    position: absolute;
    right: 15px;
    top: 15px;
    cursor: pointer;
    color: #777;
    font-size: 18px;
    transition: color 0.3s;
}

.AuthEyeIcon:hover {
    color: #3087ff;
}

/* --- KONTROLKI CHECKBOX SVG --- */
.AuthCheckboxContainer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 5px;
    margin-bottom: 10px;
}

.AuthCheckboxRow {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.AuthCheckboxLabel {
    color: #bcd;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.3;
    user-select: none;
}

.AuthSvgBox {
    width: 24px;
    height: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.AuthSvgBox svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: #ffffff;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.AuthSvgBox.checked {
    background-color: #3087ff;
    border-color: #3087ff;
}

.AuthSvgBox.checked svg {
    opacity: 1;
    transform: scale(1);
}

/* --- PRZYCISK LOGOWANIA (Główna akcja) --- */
.AuthActionBtnBlue {
    width: 100%;
    padding: 14px 0;
    background-color: #3087ff;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    
    /* DODANE WYMUSZENIA POZYCJI */
    margin: 10px 0 0 0 !important; /* Wymuszamy 0 na lewo i prawo */
    box-sizing: border-box; /* Zapobiega rozpychaniu przez padding */
    display: block;
    
    box-shadow: 0 4px 15px rgba(48, 135, 255, 0.2);
}

.AuthActionBtnBlue:hover {
    background-color: #2670d9;
    box-shadow: 0 6px 20px rgba(48, 135, 255, 0.4);
    transform: translateY(-1px);
}

/* Animacja strzałki */
.AuthActionBtnBlue i {
    transition: transform 0.3s ease-in-out;
    display: inline-block;
}

.AuthActionBtnBlue:hover i {
    transform: translateX(6px);
}