@import url('style.css');

/* --- STYL DLA STRONY LOGOWANIA --- */

/* --- 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 LOGOWANIA --- */
.login-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: 450px;
    text-align: center;
    animation: fadeInUp 0.8s ease-out; /* Dodanie animacji */
}

.login-form h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    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);
}

.login-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 ikoną 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);
}

/* --- 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;
    }
}