/* Salut Login Form Styles - UdanyZwiazek.pl Design */

.salut-login-wrapper {
    max-width: 100%;
}

.salut-login-wrapper .salut-login-form {
    width: 100%;
}

/* Form Groups */
.salut-login-wrapper .salut-login-form .salut-form-group {
    margin-bottom: 20px;
}

.salut-login-wrapper .salut-login-form .salut-form-group:last-child {
    margin-bottom: 0;
}

/* Labels */
.salut-login-wrapper .salut-login-form .salut-form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
}

/* Input Wrapper (for toggle button) */
.salut-login-wrapper .salut-login-form .salut-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* Inputs */
.salut-login-wrapper .salut-login-form .salut-form-input {
    width: 100%;
    padding: 14px 18px !important;
    border: 1px solid rgba(40, 47, 71, 0.08) !important;
    border-radius: 10px !important;
    font-size: 15px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #282F47;
    background: #ffffff !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    box-shadow: none !important;
    outline: none !important;
}

.salut-login-wrapper .salut-login-form .salut-input-wrapper .salut-form-input {
    padding-right: 48px !important;
}

.salut-login-wrapper .salut-login-form .salut-form-input::placeholder {
    color: #9098a9;
}

.salut-login-wrapper .salut-login-form .salut-form-input:hover {
    border-color: rgba(40, 47, 71, 0.12) !important;
}

.salut-login-wrapper .salut-login-form .salut-form-input:focus {
    outline: none !important;
    border-color: #282F47 !important;
    box-shadow: 0 0 0 3px rgba(40, 47, 71, 0.08) !important;
}

.salut-login-wrapper .salut-login-form .salut-form-input:disabled {
    background-color: #f8f9fb !important;
    color: #9098a9;
    cursor: not-allowed;
}

/* Toggle Password Button */
.salut-login-wrapper .salut-login-form .salut-toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    z-index: 10;
}

.salut-login-wrapper .salut-login-form .salut-toggle-password:hover,
.salut-login-wrapper .salut-login-form .salut-toggle-password:focus,
.salut-login-wrapper .salut-login-form .salut-toggle-password:active {
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.salut-login-wrapper .salut-login-form .salut-eye-icon {
    width: 20px;
    height: 20px;
    display: block;
    background-color: #9098a9;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'%3E%3C/path%3E%3Ccircle cx='12' cy='12' r='3'%3E%3C/circle%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'%3E%3C/path%3E%3Ccircle cx='12' cy='12' r='3'%3E%3C/circle%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    transition: background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.salut-login-wrapper .salut-login-form .salut-toggle-password:hover .salut-eye-icon {
    background-color: #282F47;
}

.salut-login-wrapper .salut-login-form .salut-toggle-password.salut-password-visible .salut-eye-icon {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24'%3E%3C/path%3E%3Cline x1='1' y1='1' x2='23' y2='23'%3E%3C/line%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24'%3E%3C/path%3E%3Cline x1='1' y1='1' x2='23' y2='23'%3E%3C/line%3E%3C/svg%3E");
}

/* Submit Button */
.salut-login-wrapper .salut-login-form .salut-form-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px !important;
    background: linear-gradient(135deg, #282F47 0%, #3a4460 100%) !important;
    background-color: #282F47 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 14px;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(40, 47, 71, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.salut-login-wrapper .salut-login-form .salut-form-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 47, 71, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    background: linear-gradient(135deg, #1e2538 0%, #282F47 100%) !important;
}

.salut-login-wrapper .salut-login-form .salut-form-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(40, 47, 71, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

.salut-login-wrapper .salut-login-form .salut-form-button:disabled {
    background: linear-gradient(135deg, #d1d5db 0%, #c4c9d4 100%) !important;
    box-shadow: none !important;
    cursor: not-allowed;
    transform: none;
}

/* Messages */
.salut-login-wrapper .salut-message {
    padding: 14px 18px;
    border-radius: 10px !important;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.salut-login-wrapper .salut-message-error {
    background-color: #fef2f2 !important;
    color: #991b1b !important;
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
}

.salut-login-wrapper .salut-message-info {
    background-color: #f8f9fb !important;
    color: #5a6178 !important;
    border: 1px solid rgba(40, 47, 71, 0.08) !important;
}

.salut-login-wrapper .salut-message-success {
    background-color: #f0fdf4 !important;
    color: #166534 !important;
    border: 1px solid rgba(34, 197, 94, 0.2) !important;
}

/* Attempts Warning */
.salut-login-wrapper .salut-login-form .salut-attempts-warning {
    background-color: #fffbeb !important;
    color: #92400e !important;
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
    border-radius: 10px !important;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.salut-login-wrapper .salut-login-form .salut-attempts-warning::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background-color: #92400e;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='8' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'%3E%3C/line%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='8' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'%3E%3C/line%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    flex-shrink: 0;
}

/* Mode Toggle */
.salut-login-wrapper .salut-login-mode-toggle {
    display: flex;
    background: linear-gradient(135deg, #f8f9fb 0%, #f4f5f7 100%) !important;
    border-radius: 12px !important;
    padding: 4px;
    margin-bottom: 24px;
    gap: 4px;
    border: 1px solid rgba(40, 47, 71, 0.06) !important;
}

.salut-login-wrapper .salut-login-mode-toggle .salut-mode-btn {
    flex: 1;
    padding: 12px 16px;
    background: transparent !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 14px;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.salut-login-wrapper .salut-login-mode-toggle .salut-mode-btn:hover {
    color: #282F47;
}

.salut-login-wrapper .salut-login-mode-toggle .salut-mode-btn.active {
    background: linear-gradient(135deg, #282F47 0%, #3a4460 100%) !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(40, 47, 71, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Magic Link Section */
.salut-login-wrapper .salut-magic-link-section .salut-magic-link-description {
    background: linear-gradient(135deg, #f8f9fb 0%, #f4f5f7 100%) !important;
    border-radius: 10px !important;
    padding: 18px 20px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
    color: #5a6178;
    text-align: center;
    border: 1px solid rgba(40, 47, 71, 0.06) !important;
}

/* Responsive */
@media (max-width: 480px) {
    .salut-login-wrapper .salut-login-form .salut-form-input {
        padding: 12px 14px !important;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .salut-login-wrapper .salut-login-form .salut-input-wrapper .salut-form-input {
        padding-right: 44px !important;
    }

    .salut-login-wrapper .salut-login-form .salut-form-button {
        padding: 14px 20px !important;
    }

    .salut-login-wrapper .salut-login-mode-toggle {
        flex-direction: column;
    }

    .salut-login-wrapper .salut-login-mode-toggle .salut-mode-btn {
        padding: 14px 16px;
    }
}

/* Elementor Editor Preview Styles */
.elementor-editor-active .salut-login-form {
    pointer-events: none;
}
