
* {
    outline: 1px solid red;
}

/* =========================================
   1. GŁÓWNA STRUKTURA (WRAPPER & CONTAINER)
   ========================================= */
.auth-wrapper {  
    display: flex;  
    justify-content: center;  
    align-items: center;  
    padding: 20px;  
    background: #020617; 
}  

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    width: 100%;  
    max-width: 1200px; 
    min-height: 1100px;
    border-radius: 18px;  
    overflow: hidden;  
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);  
    margin: 0 auto;
}

/* =========================================
   2. LEWA STRONA (GRAFIKA / TEKST)
   ========================================= */
.auth-image {
    background: url('../assets/obd.png') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
}

.auth-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.2));
}

.auth-image-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 80%;
}

.auth-image-content h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.auth-image-content p {
    font-size: 16px;
    line-height: 1.5;
    opacity: 0.9;
}

/* =========================================
   3. PRAWA STRONA (FORM BOX)
   ========================================= */

.auth-box {
    background: rgba(15, 23, 42, 0.95);
    padding: 40px;
    display: flex;
    flex-direction: column;
    height: 100%; /* wystarczy, bez flex:1 */
    position: relative;
    overflow: hidden;
}


.form-title {
    color: white;
    margin-bottom: 20px;
    font-size: 24px;
}

/* TABS (PRZEŁĄCZANIE) */
.auth-tabs {
    display: flex;
    margin-bottom: 30px;
    background: #020617;
    border-radius: 12px;
    padding: 5px;
    position: relative;
    z-index: 20; /* Poprawiony komentarz */
}

.auth-tabs button {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    border-radius: 8px;
    transition: 0.3s;
}

.auth-tabs button.active {
    background: #38bdf8;
    color: #020617;
    font-weight: 600;
}

/* =========================================
   4. FORMULARZE I POLA WEJŚCIA
   ========================================= */
.contact-form {
    display: flex;
    flex-direction: column;
    margin-top: 10px; /* mniejsza przerwa */
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.is-hidden {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}




.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
    position: relative;
}

.form-group label {
    color: #94a3b8;
    font-size: 13px;
    margin-bottom: 5px;
}

input {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #1e293b;
    background: #020617;
    color: #e2e8f0;
    outline: none;
    transition: 0.3s;
}

input:focus {
    border-color: #38bdf8;
}

/* CHECKBOX */
.form-group.checkbox {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    cursor: pointer;
}

.form-group.checkbox label {
    margin-bottom: 0;
    color: #e2e8f0;
    font-size: 14px;
}

.form-group.checkbox input[type='checkbox'] {
    width: 18px;
    height: 18px;
    accent-color: #38bdf8;
}

/* HASŁO I IKONA OKA */
.password-wrapper {
    position: relative;
}

.toggle-pass {
    position: absolute;
    right: 12px;
    top: 28px; /* Pozycja dopasowana do inputa */
    cursor: pointer;  
    color: #94a3b8;  
    font-size: 18px;  
    z-index: 10;  
    user-select: none;
    transition: color 0.2s;
}

.toggle-pass:hover {
    color: #38bdf8;
}

/* =========================================
   5. WALIDACJA I KOMUNIKATY
   ========================================= */
.form-group.success input {
    border-color: #22c55e;
}

.form-group.error input {
    border-color: #ef4444;
}

.error {
    color: #f87171;
    font-size: 11px;
    min-height: 15px;
    margin-top: 4px;
}

.hint {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 4px;
}

/* =========================================
   6. PRZYCISKI I LINKI
   ========================================= */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0 20px;
    font-size: 13px;
}

.forgot {
    color: #38bdf8;
    text-decoration: none;
}

.contact-btn {
    padding: 14px;
    border-radius: 10px;
    border: none;
    background: #38bdf8;
    color: #020617;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
}

.contact-btn:hover {
    background: #0ea5e9;
    transform: translateY(-1px);
}

/* =========================================
   7. RESPONSYWNOŚĆ (MOBILE) - POPRAWIONA
   ========================================= */
@media (max-width: 768px) {
    .auth-wrapper {
        padding: 10px; /* Mniejszy margines od krawędzi ekranu */
        align-items: flex-start
    }

    .auth-container {
        grid-template-columns: 1fr; /* Jedna kolumna */
        min-height: auto;
        border-radius: 12px; /* Mniejszy promień na małym ekranie */
    }

    .auth-image {
        display: none; /* Ukrywamy grafikę */
    }

    .auth-box {
        padding: 25px 15px; /* Kompaktowe odstępy */
        height: auto;
    }

    .auth-tabs {
        margin-bottom: 20px;
    }

    .contact-form {
        position: relative; /* Upewniamy się, że nie jest absolute */
        margin-top: 0;
    }
    
    .form-title {
        font-size: 20px; /* Trochę mniejszy napis na telefonie */
        margin-bottom: 15px;
    }
}

/*poprawki*/

@media (max-width: 768px) {

    .is-hidden {
        position: static;   /* 🔥 zmiana */
        opacity: 0;
        display: none;      /* lepsze niż pointer-events */
    }

}
