/* style_login.css - Style dla formularza logowania
 * Kolory: akcenty #39896E, tło białe, tekst #183c32
 * Responsywny design dostosowujący się do urządzeń mobilnych
 */

/* Reset i podstawowe ustawienia */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ffffff;
    color: #183c32;
    line-height: 1.5;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Główny kontener - wyśrodkowanie i szerokość maksymalna */
.container {
    max-width: 450px;
    margin: 0 auto;
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    width: 100%;
}

/* Nagłówek formularza */
.form-header {
    text-align: center;
    margin-bottom: 25px;
}

.form-header h1 {
    color: #39896E;
    font-size: 26px;
    margin-bottom: 8px;
}

.form-header p {
    color: #666;
    font-size: 14px;
}

/* Grupy formularza */
.form-group {
    margin-bottom: 20px;
}

/* Etykiety */
label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
    color: #183c32;
}

/* Pola input */
input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    color: #183c32;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus {
    outline: none;
    border-color: #39896E;
    box-shadow: 0 0 0 3px rgba(57, 137, 110, 0.2);
}

/* Przycisk */
button {
    background-color: #39896E;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    transition: background-color 0.3s;
    margin-top: 5px;
    margin-bottom: 20px;
}

button:hover {
    background-color: #2c6853;
}

/* Komunikaty o błędach */
.error {
    color: #d9534f;
    font-size: 13px;
    margin-top: 4px;
    padding-left: 2px;
}

/* Komunikat o sukcesie */
.success {
    color: #39896E;
    background-color: rgba(57, 137, 110, 0.1);
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
    border-left: 4px solid #39896E;
}

.success a {
    color: #39896E;
    font-weight: 600;
    text-decoration: none;
}

.success a:hover {
    text-decoration: underline;
}

/* Linki */
.login-link {
    text-align: center;
    margin-top: 10px;
}

.login-link a {
    color: #39896E;
    text-decoration: none;
    font-weight: 600;
}

.login-link a:hover {
    text-decoration: underline;
}

/* Responsywność dla urządzeń mobilnych */
@media (max-width: 576px) {
    .container {
        padding: 20px;
        margin: 0 5px;
    }
    
    .form-header h1 {
        font-size: 22px;
    }
    
    input, button {
        padding: 10px;
        font-size: 14px;
    }
    
    .form-group {
        margin-bottom: 16px;
    }
}

/* Animacja dla przycisku */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

button:active {
    animation: pulse 0.3s ease-in-out;
}