/* 
File: assets/style.css
---*/
.crm-form {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.crm-form h2 {
    margin-top: 0;
    color: #333;
}

.crm-form-group {
    margin-bottom: 15px;
}

.crm-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
}

.crm-form-group label .required {
    color: #e74c3c;
}

.crm-form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.crm-form-group input:focus {
    outline: none;
    border-color: #3498db;
}

.crm-button {
    width: 100%;
    padding: 12px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.crm-button:hover {
    background: #2980b9;
}

.crm-message {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
    display: none;
}

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

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

/* Success and error notices */
.crm-success-notice {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.crm-error-notice {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.crm-logout-link {
    color: #3498db;
    text-decoration: none;
    cursor: pointer;
}

.crm-logout-link:hover {
    text-decoration: underline;
}

.crm-user-info {
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

/* Forgot Password Link */
.crm-forgot-password-link {
    text-align: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.crm-forgot-password-link a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.crm-forgot-password-link a:hover {
    color: #ff5722;
    text-decoration: underline;
}

/* Back to Login Link */
.crm-back-to-login {
    text-align: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.crm-back-to-login a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.crm-back-to-login a:hover {
    color: #ff5722;
}

/* Forgot/Reset Password Form Descriptions */
.crm-forgot-description,
.crm-reset-description {
    background: #f5f5f5;
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* Tabbed Authentication Form Styles */
.crm-auth-container {
    max-width: 500px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.crm-auth-tabs {
    display: flex;
    background: #f5f5f5;
}

.crm-tab-button {
    flex: 1;
    padding: 18px 20px;
    background: #ffffff;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.crm-tab-button svg {
    width: 24px;
    height: 24px;
}

.crm-tab-button:hover {
    background: #f9f9f9;
}

.crm-tab-button.active {
    background: #ff5722;
    color: #ffffff;
    border-bottom-color: #e64a19;
}

.crm-tab-button:first-child.active {
    background: #ff5722;
}

.crm-tab-button:last-child.active {
    background: #ff5722;
}

.crm-tab-content {
    padding: 30px;
    display: none;
}

.crm-tab-content.active {
    display: block;
}

.crm-auth-container .crm-form {
    background: transparent;
    padding: 0;
    margin: 0;
}

.crm-auth-container .crm-form-group input {
    padding: 12px 15px;
    font-size: 15px;
    border: 1px solid #e0e0e0;
    background: #fafafa;
}

.crm-auth-container .crm-form-group input:focus {
    background: #ffffff;
    border-color: #ff5722;
    box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.1);
}

.crm-auth-container .crm-button {
    background: #ff5722;
    padding: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 14px;
}

.crm-auth-container .crm-button:hover {
    background: #e64a19;
}

.crm-auth-container .crm-form-group label {
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
}

/* Responsive design */
@media (max-width: 600px) {
    .crm-auth-container {
        margin: 0 15px;
    }
    
    .crm-tab-button {
        padding: 15px 10px;
        font-size: 14px;
    }
    
    .crm-tab-button svg {
        width: 20px;
        height: 20px;
    }
    
    .crm-tab-content {
        padding: 20px 15px;
    }
}

/* ===================================
 * Login Button Styles (Header)
 * =================================== */

.crm-login-button-wrapper {
    display: inline-block;
}
a.crm-login-button.crm-logged-in {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Login Button - Not Logged In */
/*.crm-login-button.crm-not-logged-in {*/
/*    display: inline-block;*/
/*    padding: 10px 24px;*/
/*    background: #ff5722;*/
/*    color: white;*/
/*    text-decoration: none;*/
/*    border-radius: 6px;*/
/*    font-weight: 600;*/
/*    font-size: 14px;*/
/*    letter-spacing: 0.5px;*/
/*    transition: all 0.3s ease;*/
/*    cursor: pointer;*/
/*    border: none;*/
/*}*/

/*.crm-login-button.crm-not-logged-in:hover {*/
/*    background: #e64a19;*/
/*    transform: translateY(-2px);*/
/*    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.3);*/
/*}*/

/* Login Button - Logged In (Username + Profile Icon) */
/*.crm-login-button.crm-logged-in {*/
/*    display: inline-flex;*/
/*    align-items: center;*/
/*    gap: 8px;*/
/*    padding: 10px 18px;*/
/*    background: white;*/
/*    color: #333;*/
/*    border: 2px solid #ff5722;*/
/*    border-radius: 6px;*/
/*    font-weight: 600;*/
/*    font-size: 14px;*/
/*    text-decoration: none;*/
/*    cursor: pointer;*/
/*    transition: all 0.3s ease;*/
/*}*/

/*.crm-login-button.crm-logged-in:hover {*/
/*    background: #fff5f2;*/
/*    box-shadow: 0 2px 8px rgba(255, 87, 34, 0.2);*/
/*    transform: translateY(-2px);*/
/*}*/

/*.crm-login-button.crm-logged-in .crm-user-name {*/
/*    color: #ff5722;*/
/*}*/

/*.crm-login-button.crm-logged-in .crm-profile-icon {*/
/*    color: #ff5722;*/
/*    transition: transform 0.3s ease;*/
/*}*/

/*.crm-login-button.crm-logged-in:hover .crm-profile-icon {*/
/*    transform: scale(1.1);*/
/*}*/

/* Responsive */
/*@media (max-width: 600px) {*/
/*    .crm-login-button {*/
/*        padding: 8px 16px;*/
/*        font-size: 13px;*/
/*    }*/
    
/*    .crm-login-button.crm-logged-in .crm-profile-icon {*/
/*        width: 18px;*/
/*        height: 18px;*/
/*    }*/
/*}*/

/* Redirect Timer UI Styles */
#rp-redirect-timer {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

#rp-redirect-timer img,
#rp-redirect-timer svg,
#rp-redirect-timer .emoji {
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    display: inline-block !important;
    vertical-align: middle !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ==========================================================================
   Full-Screen Resource Form Submission Loader Overlay
   ========================================================================== */
#rp-fullscreen-loader {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    margin: 0 !important;
    padding: 0 !important;
    background-color: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
    z-index: 9999999 !important;
    display: none;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding-top: 100px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.3s ease, visibility 0.3s ease !important;
    pointer-events: none !important;
    transform: none !important;
    perspective: none !important;
}

#rp-fullscreen-loader:not(.active) {
    display: none !important;
}

#rp-fullscreen-loader.active {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

#rp-fullscreen-loader .rp-loader-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    background: #ffffff !important;
    padding: 32px 40px !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12) !important;
    max-width: 400px !important;
    width: 90% !important;
    margin: auto !important;
    transform: none !important;
}

#rp-fullscreen-loader .rp-loader-spinner {
    width: 50px !important;
    height: 50px !important;
    border: 4px solid #e0e0e0 !important;
    border-top: 4px solid #007bff !important;
    border-radius: 50% !important;
    animation: rp-spin 0.9s linear infinite !important;
    margin-bottom: 20px !important;
    box-sizing: border-box !important;
}

#rp-fullscreen-loader .rp-loader-text {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #333333 !important;
    margin: 0 0 6px 0 !important;
}

#rp-fullscreen-loader .rp-loader-subtext {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif !important;
    font-size: 13px !important;
    color: #666666 !important;
    margin: 0 !important;
}

@keyframes rp-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}