/* style_register.css - Style dla formularza rejestracji użytkowników 
 * 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: 500px;
    margin: 0 auto;
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

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

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

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

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

/* Style dla grup z checkboxami zgód */
.consent-group {
    margin-bottom: 12px;
}

.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
}

.checkbox-wrapper input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    margin-top: 3px;
    flex-shrink: 0;
}

.checkbox-wrapper label {
    font-weight: normal;
    margin-bottom: 0;
    font-size: 13px;
    line-height: 1.4;
}

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

.consent-group a:hover {
    text-decoration: underline;
}

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

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

input:focus, select: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: 15px;
    font-weight: 600;
    width: 100%;
    transition: background-color 0.3s;
    margin-top: 5px;
}

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: 15px;
    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: 15px;
}

.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: 15px;
        margin: 0 5px;
    }
    
    .form-header h1 {
        font-size: 22px;
    }
    
    input, select, button {
        padding: 8px;
        font-size: 14px;
    }
    
    .form-group {
        margin-bottom: 14px;
    }
}

/* 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;
}