/* ==========================================================================
   Secure Agenda Form Styles (Elementor Minimal Integration)
   ========================================================================== */

/* The main form widget wrapper - made transparent to inherit Elementor column styling */
.sap-form-container {
    display: flex;
    flex-direction: column;
    font-family: inherit;
    width: 100%;
    margin: 0;
    position: relative;
    background: transparent;
}

.sap-auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
}

/* Premium Input Styling */
.sap-password-input {
    width: 100%;
    padding: 15px 18px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 16px;
    background-color: #f9fafb;
    color: #1f2937;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    font-family: inherit;
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.02);
}

.sap-password-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.sap-password-input:focus {
    border-color: #8b5cf6;
    outline: none;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15), inset 0 2px 4px 0 rgba(0, 0, 0, 0.02);
    background-color: #ffffff;
}

/* Primary Action Button (Color is now controlled dynamically via backend PHP) */
.sap-download-btn {
    color: #ffffff;
    font-weight: 600;
    border: none;
    padding: 16px 32px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.02em;
}

.sap-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    filter: brightness(1.1);
}

.sap-download-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Error message styling */
.sap-error {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    color: #b91c1c;
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 0 8px 8px 0;
    font-weight: 500;
    font-size: 14px;
    animation: sapFadeIn 0.3s ease-out forwards;
}

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