@import url('style.css');

/* --- STYL DLA STRONY REJESTRACJI --- */

/* --- CIAŁO STRONY I TŁO --- */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- ALTERNATYWNY NAGŁÓWEK --- */
header {
    position: static;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem; /* Adjusted for more height */
    padding-bottom: 2rem; /* Adjusted for more height */
}

header nav {
    justify-content: center; /* Przywrócenie wyśrodkowania */
    position: relative;
}

/* Przycisk powrotu do strony głównej */
.back-to-home {
    color: var(--gray-light);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
    position: absolute;
    left: 0;
}

.back-to-home:hover {
    color: var(--primary-white);
}

.back-to-home i {
    font-size: 0.8rem;
}

/* Logo wyśrodkowane */
.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* Ukrycie niepotrzebnych elementów nawigacji */
.nav-links, .auth-buttons, .mobile-menu {
    display: none;
}

/* --- GŁÓWNA ZAWARTOŚĆ --- */
main {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

/* --- FORMULARZ REJESTRACJI --- */
.registration-form {
    background: linear-gradient(145deg, var(--gray-medium), var(--gray-dark));
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 500px;
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

.registration-form h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem; /* Zmniejszenie odstępu */
    color: var(--primary-white);
    text-shadow: 0 0 10px var(--glow-color);
}

.input-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.input-group label {
    display: block;
    font-size: 0.9rem;
    color: var(--gray-light);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.input-group input {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: var(--primary-white);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-white);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.registration-form .btn {
    width: 100%;
    margin-top: 1rem;
    padding: 0.8rem;
    font-size: 1.1rem;
}

.form-footer {
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

.form-footer a {
    color: var(--gray-light);
    text-decoration: none;
    border-bottom: 1px dotted var(--gray-light);
    transition: color 0.3s ease, border-color 0.3s ease;
}

.form-footer a:hover {
    color: var(--primary-white);
    border-color: var(--primary-white);
}

.error-message {
  color: #ff4d4d;
  font-size: 0.9rem;
  text-align: center;
  width: 100%;
  margin-bottom: 1rem;
  min-height: 1.2em;
}

/* Styl dla inputów z hasłem i ikonou oka */
.input-group-password {
    position: relative;
}

.input-group-password input {
    padding-right: 3rem; /* Miejsce na ikonę */
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-light);
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.3s ease;
    z-index: 1;
}

.password-toggle:hover {
    color: var(--primary-white);
}

/* Styl dla tekstu siły hasła */
.password-strength-text {
    font-weight: 500;
    transition: color 0.3s ease;
}

/* --- STOPKA --- */
footer {
    background: var(--gray-dark);
    padding: 4rem 2rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.footer-links a {
    color: var(--gray-light);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-white);
    transform: translateY(-5px);
}

footer p {
    color: var(--gray-light);
    font-size: 0.9rem;
}

/* --- RESPONSYWNOŚĆ --- */
@media (max-width: 768px) {
    .back-to-home {
        font-size: 0.8rem;
    }
    
    header nav {
        justify-content: center; /* Zachowanie wyśrodkowania na mobile */
    }
    
    .password-toggle {
        right: 0.5rem;
        font-size: 0.9rem;
    }
}

/* Styl dla grupy checkboxa */
.checkbox-group {
    display: flex;
    align-items: center; /* Wyrównanie w pionie */
    gap: 10px; /* Odstęp między checkboxem a tekstem */
    margin-top: 1rem; /* Odstęp od góry */
    margin-bottom: 1.5rem; /* Odstęp od dołu */
}

.checkbox-group input[type="checkbox"] {
    width: 20px; /* Szerokość checkboxa */
    height: 20px; /* Wysokość checkboxa */
    min-width: 20px; /* Upewnij się, że nie będzie mniejszy */
    min-height: 20px; /* Upewnij się, że nie będzie mniejszy */
    padding: 0;
    margin: 0;
    border: 1px solid var(--gray-light); /* Ramka */
    border-radius: 5px; /* Zaokrąglenie rogów */
    appearance: none; /* Ukryj domyślny wygląd checkboxa */
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.3); /* Tło nieaktywnego checkboxa */
    transition: background-color 0.3s ease, border-color 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.checkbox-group input[type="checkbox"]:checked {
    background-color: var(--primary-color); /* Kolor po zaznaczeniu */
    border-color: var(--primary-color); /* Ramka po zaznaczeniu */
}

/* Wstawienie ikonki zaznaczenia dla checkboxa */
.checkbox-group input[type="checkbox"]:checked::before {
    content: '\2713'; /* Unicode dla znaku '✓' */
    font-size: 16px;
    color: var(--primary-white);
    line-height: 1; /* Aby tekst był wyśrodkowany */
}

.checkbox-group label {
    font-size: 0.95rem;
    color: var(--gray-light);
    margin-bottom: 0; /* Usuń domyślny margin z input-group label */
    cursor: pointer;
    display: flex;
    align-items: center;
}

.checkbox-group label a {
    color: var(--gray-light);
    text-decoration: none;
    border-bottom: 1px dotted var(--gray-light);
    transition: color 0.3s ease, border-color 0.3s ease;
    margin-left: 5px; /* Mały odstęp od tekstu "Akceptuję" */
}

.checkbox-group label a:hover {
    color: var(--primary-white);
    border-color: var(--primary-white);
}

/* Styl dla tekstu potwierdzającego akceptację regulaminu */
.terms-confirmation-text {
    font-size: 0.88rem; /* Mniejsza czcionka */
    color: var(--gray-light); /* Jasnoszary kolor */
    text-align: center; /* Wyśrodkowanie tekstu */
    margin-top: 1rem; /* Przesunięcie nieco wyżej, aby zmniejszyć odstęp od checkboxa */
    margin-bottom: 0rem; /* Odstęp od dołu, aby oddzielić od recaptcha/przycisku */
    line-height: 1.4; /* Odstęp między liniami */
}