/**
 * Style dla formularzy logowania i rejestracji
 */

/* Zmienne kolorystyczne */
:root {
    --primary-color: #4e73df;
    --primary-hover: #3a5ccc;
    --secondary-color: #858796;
    --success-color: #1e7e34;
    --error-color: #721c24;
    --info-color: #0c5460;
    --text-color: #333;
    --text-muted: #777;
    --border-color: #ddd;
    --light-bg: #fafafa;
    --white: #fff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 5px 15px rgba(0, 0, 0, 0.15);
    --border-radius: 5px;
    --transition: all 0.3s ease;
}

/* Kontener formularza */
.pro-frontend-auth-container {
    max-width: 500px;
    margin: 30px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.pro-frontend-auth-form-wrapper {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 30px;
    position: relative;
    transition: var(--transition);
}

.pro-frontend-auth-form-wrapper:hover {
    box-shadow: var(--shadow-hover);
}

/* Tytuł formularza */
.pro-frontend-auth-form-wrapper .form-title {
    text-align: center;
    margin-bottom: 25px;
    color: var(--text-color);
    font-size: 24px;
    font-weight: 600;
}

/* Formularz */
.pro-frontend-auth-form {
    margin-top: 20px;
}

/* Grupy wejściowe */
.pro-frontend-auth-form .input-group {
    margin-bottom: 20px;
    position: relative;
}

.pro-frontend-auth-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.pro-frontend-auth-form input[type="text"],
.pro-frontend-auth-form input[type="email"],
.pro-frontend-auth-form input[type="password"],
.pro-frontend-auth-form input[type="url"],
.pro-frontend-auth-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 15px;
    color: var(--text-color);
    background-color: var(--light-bg);
    transition: var(--transition);
}

.pro-frontend-auth-form input[type="text"]:focus,
.pro-frontend-auth-form input[type="email"]:focus,
.pro-frontend-auth-form input[type="password"]:focus,
.pro-frontend-auth-form input[type="url"]:focus,
.pro-frontend-auth-form textarea:focus {
    background-color: var(--white);
    outline: none;
    box-shadow: 0 0 0 2px rgba(78, 115, 223, 0.25);
}

/* Checkbox */
.pro-frontend-auth-form .checkbox-group {
    display: flex;
    align-items: center;
}

.pro-frontend-auth-form .checkbox-group input[type="checkbox"] {
    margin-right: 10px;
}

.pro-frontend-auth-form .checkbox-group label {
    margin-bottom: 0;
    cursor: pointer;
}

/* Przycisk */
.pro-frontend-auth-form .submit-button,
.pro-frontend-auth-edit-profile-btn,
.pro-frontend-auth-save-profile-btn {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.pro-frontend-auth-form .submit-button:hover,
.pro-frontend-auth-edit-profile-btn:hover,
.pro-frontend-auth-save-profile-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.pro-frontend-auth-form .submit-button:active,
.pro-frontend-auth-edit-profile-btn:active,
.pro-frontend-auth-save-profile-btn:active {
    transform: translateY(0);
}

/* Stopka formularza */
.pro-frontend-auth-form .form-footer {
    margin-top: 20px;
    text-align: center;
    color: var(--secondary-color);
    font-size: 14px;
}

.pro-frontend-auth-form a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.pro-frontend-auth-form a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Komunikaty */
.pro-frontend-auth-message {
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    font-size: 14px;
    display: none;
}

.pro-frontend-auth-message.success {
    background-color: #e6f7e9;
    color: var(--success-color);
    border: 1px solid #c3e6cb;
}

.pro-frontend-auth-message.error {
    background-color: #f8d7da;
    color: var(--error-color);
    border: 1px solid #f5c6cb;
}

.pro-frontend-auth-message.info {
    background-color: #d1ecf1;
    color: var(--info-color);
    border: 1px solid #bee5eb;
}

/* Stan zalogowany */
.pro-frontend-auth-logged-in {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 30px;
    text-align: center;
}

.pro-frontend-auth-logged-in p {
    margin-bottom: 20px;
}

.pro-frontend-auth-logged-in .logout-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.pro-frontend-auth-logged-in .logout-button:hover {
    background-color: var(--primary-hover);
}

/* Profil użytkownika - nowy ulepszony styl */
.pro-frontend-auth-profile {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 30px;
    position: relative;
    transition: var(--transition);
}

.pro-frontend-auth-profile:hover {
    box-shadow: var(--shadow-hover);
}

.pro-frontend-auth-profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.pro-frontend-auth-avatar-container {
    margin-right: 20px;
    position: relative;
}

.pro-frontend-auth-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.pro-frontend-auth-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.pro-frontend-auth-user-info {
    flex: 1;
}

.pro-frontend-auth-display-name {
    margin: 0 0 5px;
    font-size: 1.6em;
    color: var(--text-color);
    font-weight: 600;
}

.pro-frontend-auth-username {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95em;
}

.pro-frontend-auth-profile-details {
    margin: 25px 0;
    padding: 15px;
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
}

.pro-frontend-auth-profile-field {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    align-items: baseline;
}

.pro-frontend-auth-profile-field:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.pro-frontend-auth-field-label {
    font-weight: 600;
    color: var(--text-muted);
    display: inline-block;
    min-width: 120px;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pro-frontend-auth-field-value {
    flex: 1;
    color: var(--text-color);
}

.pro-frontend-auth-profile-bio {
    display: block;
}

.pro-frontend-auth-profile-bio .pro-frontend-auth-field-label {
    display: block;
    margin-bottom: 10px;
}

.pro-frontend-auth-profile-bio .pro-frontend-auth-field-value {
    background-color: var(--white);
    padding: 15px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(0,0,0,0.05);
}

.pro-frontend-auth-profile-actions {
    margin: 20px 0;
    text-align: center;
}

.pro-frontend-auth-edit-profile-btn {
    display: inline-block;
    width: auto;
    padding: 10px 25px;
    transition: var(--transition);
}

/* Formularz edycji profilu - poprawiony */
.pro-frontend-auth-profile-editor {
    margin-top: 25px;
    padding: 20px;
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    display: none;
    border: 1px solid rgba(0,0,0,0.05);
}

.pro-frontend-auth-field {
    margin-bottom: 20px;
}

.pro-frontend-auth-field label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
}

.pro-frontend-auth-field input[type="text"],
.pro-frontend-auth-field input[type="email"],
.pro-frontend-auth-field input[type="url"],
.pro-frontend-auth-field textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 15px;
    color: var(--text-color);
    background-color: var(--white);
    transition: var(--transition);
}

.pro-frontend-auth-field input[type="text"]:focus,
.pro-frontend-auth-field input[type="email"]:focus,
.pro-frontend-auth-field input[type="url"]:focus,
.pro-frontend-auth-field textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(78, 115, 223, 0.15);
    outline: none;
}

.pro-frontend-auth-field textarea {
    min-height: 100px;
    resize: vertical;
}

.pro-frontend-auth-avatar-upload {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.pro-frontend-auth-avatar-upload label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-color);
}

.pro-frontend-auth-avatar-upload input[type="file"] {
    background-color: var(--white);
    padding: 12px;
    border: 1px dashed var(--border-color);
    border-radius: var(--border-radius);
    width: 100%;
    cursor: pointer;
}

.pro-frontend-auth-profile-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    gap: 15px;
}

.pro-frontend-auth-cancel-edit-btn {
    padding: 12px 20px;
    background-color: var(--light-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    flex: 1;
}

.pro-frontend-auth-cancel-edit-btn:hover {
    background-color: #e9ecef;
    border-color: #cfd4da;
}

.pro-frontend-auth-save-profile-btn {
    padding: 12px 20px;
    width: auto;
    flex: 1;
}

.pro-frontend-auth-profile-footer {
    margin-top: 30px;
    text-align: center;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 20px;
}

.pro-frontend-auth-logout-btn {
    display: inline-block;
    padding: 10px 25px;
    background-color: var(--light-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.pro-frontend-auth-logout-btn:hover {
    background-color: #e9ecef;
    text-decoration: none;
    color: var(--text-color);
    border-color: #cfd4da;
}

/* Formularze na jednej stronie */
.pro-frontend-auth-forms-container {
    display: none; /* Początkowo ukryte */
}

.pro-frontend-auth-forms-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.pro-frontend-auth-tab {
    padding: 10px 20px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
    color: var(--text-muted);
    font-weight: 500;
}

.pro-frontend-auth-tab:hover {
    color: var(--primary-color);
    background-color: rgba(78, 115, 223, 0.05);
}

.pro-frontend-auth-tab.active {
    border-bottom-color: var(--primary-color);
    color: var(--primary-color);
    background-color: rgba(78, 115, 223, 0.1);
}

.pro-frontend-auth-form-content {
    display: none; /* Początkowo ukryte */
}

.pro-frontend-auth-form-content.active {
    display: block;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsywność */
@media (max-width: 576px) {
    .pro-frontend-auth-container {
        padding: 0 15px;
    }
    
    .pro-frontend-auth-form-wrapper {
        padding: 20px;
    }
    
    .pro-frontend-auth-form-wrapper .form-title {
        font-size: 20px;
    }
    
    .pro-frontend-auth-form input[type="text"],
    .pro-frontend-auth-form input[type="email"],
    .pro-frontend-auth-form input[type="password"],
    .pro-frontend-auth-form input[type="url"],
    .pro-frontend-auth-form textarea,
    .pro-frontend-auth-form .submit-button {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .pro-frontend-auth-profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .pro-frontend-auth-avatar-container {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .pro-frontend-auth-field-label {
        min-width: auto;
        display: block;
        margin-bottom: 5px;
    }
    
    .pro-frontend-auth-profile-field {
        flex-direction: column;
    }
    
    .pro-frontend-auth-profile-buttons {
        flex-direction: column;
    }
    
    .pro-frontend-auth-cancel-edit-btn {
        margin-bottom: 10px;
    }
}