/* Login & Register Form Styles */

/* Elementor wrapper */
.elr-elementor-login-wrapper {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.elr-login-form-wrapper,
.elr-register-form-wrapper {
    max-width: 450px;
    margin: 50px auto;
    padding: 40px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.elr-form-title {
    margin: 0 0 30px;
    font-size: 28px;
    font-weight: 600;
    text-align: center;
    color: #333;
}

.elr-login-form,
.elr-register-form {
    width: 100%;
}

.elr-form-field {
    margin-bottom: 20px;
}

.elr-form-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.elr-input {
    width: 100%;
    padding: 12px 15px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.elr-input:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

.elr-remember {
    margin: 15px 0;
}

.elr-remember label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}

.elr-remember input[type="checkbox"] {
    margin-right: 8px;
    width: auto;
}

.elr-login-submit,
.elr-register-submit {
    width: 100%;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background-color: #2271b1;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.elr-login-submit:hover,
.elr-register-submit:hover {
    background-color: #135e96;
}

.elr-lost-password {
    margin-top: 15px;
    text-align: center;
}

.elr-lost-password a {
    color: #2271b1;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.elr-lost-password a:hover {
    color: #135e96;
    text-decoration: underline;
}

/* Template Wrapper */
.elr-login-template-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Error/Success Messages */
.elr-message {
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 14px;
}

.elr-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.elr-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.elr-message p {
    margin: 0;
}

/* Logged in message */
.elr-logged-in-message {
    text-align: center;
    padding: 20px;
}

.elr-logged-in-message p {
    margin-bottom: 15px;
    font-size: 16px;
    color: #333;
}

.elr-logout-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #dc3232;
    color: #fff !important;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.elr-logout-button:hover {
    background-color: #a52a2a;
}

/* Hide WordPress login elements when using Elementor */
body.login.elr-custom-login #login {
    display: none !important;
}

body.login.elr-custom-login #backtoblog,
body.login.elr-custom-login #nav {
    display: none !important;
}

/* When custom template is active */
body.login #loginform[style*="display: none"],
body.login #nav,
body.login #backtoblog {
    display: none !important;
}

/* Wrapper styling */
.elr-elementor-login-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Override WordPress login container */
body.login #login {
    width: auto !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Caps Lock Warning Styles */
#caps-warning,
.caps-lock-warning,
.caps-warning {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    padding: 10px 14px !important;
    margin-top: 10px !important;
    background: #fff3cd !important;
    color: #856404 !important;
    border: 1px solid #ffeeba !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    width: auto !important;
    max-width: 100%;
}

/* Ikona SVG w caps warning */
#caps-warning .caps-icon,
.caps-lock-warning .caps-icon,
.caps-warning .caps-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0;
}

#caps-warning .caps-icon svg,
.caps-lock-warning .caps-icon svg,
.caps-warning .caps-icon svg {
    width: 18px !important;
    height: 18px !important;
    fill: #856404 !important;
    stroke: #856404 !important;
}

/* Tekst w caps warning */
#caps-warning .caps-warning-text,
.caps-lock-warning .caps-warning-text,
.caps-warning .caps-warning-text {
    color: #856404 !important;
    font-size: 13px !important;
}

/* Dashicons w przypadku starszych wersji WP */
.login .caps-lock-warning .dashicons {
    font-size: 18px !important;
    width: 18px !important;
    height: 18px !important;
    color: #856404 !important;
}

/* Ukrycie komunikatu Caps Lock jeśli ustawione */
body.login.elr-hide-caps-warning #caps-warning,
body.login.elr-hide-caps-warning .caps-lock-warning,
body.login.elr-hide-caps-warning .caps-warning {
    display: none !important;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .elr-login-form-wrapper,
    .elr-register-form-wrapper {
        max-width: 100%;
        margin: 20px;
        padding: 30px 20px;
    }
    
    .elr-form-title {
        font-size: 24px;
    }
}
