/* KickTick Login Modal Styles */

/* Modal Overlay */
.kicktick-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.kicktick-modal-overlay.active {
    display: flex;
}

/* Modal Container */
.kicktick-modal-container {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    max-width: 420px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Close Button */
.kicktick-modal-close {
    position: absolute !important;
    top: 23px;
    right: 16px;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    font-size: 24px !important;
    color: #666 !important;
    cursor: pointer !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    transition: all 0.2s ease !important;
    z-index: 10 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}

.kicktick-modal-close:hover {
    background: #f5f5f5 !important;
    background-color: #f5f5f5 !important;
    color: #333 !important;
}

/* Form Container */
.kicktick-form-container {
    padding: 40px 32px 32px;
    display: none;
}

.kicktick-form-container.active {
    display: block;
}

/* Modal Title */
.kicktick-modal-title {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    text-align: left;
    margin: 0 0 32px 0;
    line-height: 1.2;
}

/* Forgot Password Description */
.kicktick-forgot-description {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin: -16px 0 24px 0;
    line-height: 1.4;
}

/* Social Login Section */
.kicktick-social-login {
    margin-bottom: 4px;
}

/* Google Container */
.kicktick-google-container {
    width: 265px;
    margin-bottom: 20px;
    text-align: center;
    margin:0 auto !important;
}

.kicktick-google-container > div {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    justify-content: center !important;
}

/* Google Button Wrapper */
.kicktick-google-wrapper {
    width: 100%;
    border: none !important;
    border-radius: 0px !important;
    overflow: hidden;
    transition: all 0.2s ease;
    margin-left: -3px !important;
  
    box-sizing: border-box;
}

.kicktick-google-wrapper:hover {
    border-color: #4285f4;
}

.kicktick-google-wrapper iframe {
    margin:0 auto !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    display: block !important;
    border: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
   
    position: relative !important;
}

/* Google Button */
.kicktick-google-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 20px;
    border: none !important;
    border-radius: 12px;
    background: #ffffff;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.kicktick-google-btn:hover {
    border-color: #4285f4;
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.15);
    transform: translateY(-1px);
}

.kicktick-google-btn:active {
    transform: translateY(0);
}

.kicktick-google-btn svg {
    flex-shrink: 0;
}

/* Divider */
.kicktick-social-login::after {
    content: "or";
    display: block;
    text-align: center;
    margin: 8px 0 10px;
    color: #888;
    font-size: 14px;
    position: relative;
}

.kicktick-social-login::after::before,
.kicktick-social-login::after::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: #e0e0e0;
}

.kicktick-social-login::after::before {
    left: 0;
}

.kicktick-social-login::after::after {
    right: 0;
}

/* Form Fields */
.kicktick-field-group {
    margin-bottom: 12px;
    position: relative;
}

.kicktick-field-group input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    background: #ffffff;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.kicktick-field-group input:focus {
    outline: none;
    border-color: #4285f4;
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
}

.kicktick-field-group input::placeholder {
    color: #888;
}

/* Side-by-side field layout */
.kicktick-field-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px !important;
}

.kicktick-field-half {
    flex: 1;
    margin-bottom: 0;
}

/* Legal text styling */
.kicktick-legal-text {
    font-size: 12px;
    line-height: 1.5;
    color: #666;
    margin-bottom: 15px;
    text-align: left;
}

.kicktick-legal-text a {
    color: #4285f4;
    text-decoration: underline;
}

.kicktick-legal-text a:hover {
    text-decoration: none;
}

/* Password Field with Toggle */
.kicktick-password-field {
    position: relative;
}

.kicktick-password-toggle {
    position: absolute !important;
    right: 16px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    cursor: pointer !important;
    color: #666 !important;
    padding: 4px !important;
    margin: 0 !important;
    border-radius: 4px !important;
    transition: color 0.2s ease !important;
    box-shadow: none !important;
}

.kicktick-password-toggle:hover {
    color: #333 !important;
}

/* Form Footer */
.kicktick-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
  
}

/* Custom Checkbox */
.kicktick-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    user-select: none;
}

.kicktick-checkbox input[type="checkbox"] {
    display: none;
}

.kicktick-checkbox .checkmark {
    width: 18px;
    height: 18px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    position: relative;
    transition: all 0.2s ease;
}

.kicktick-checkbox input[type="checkbox"]:checked + .checkmark {
    background: #4285f4;
    border-color: #4285f4;
}

.kicktick-checkbox input[type="checkbox"]:checked + .checkmark::after {
    content: "✓";
    position: absolute;
    top: -2px;
    left: 2px;
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* Forgot Password Link */
.kicktick-forgot-password {
    font-size: 14px;
    color: #4285f4;
    text-decoration: none;
    transition: color 0.2s ease;
}

.kicktick-forgot-password:hover {
    color: #1a73e8;
    text-decoration: underline;
}

/* Submit Button */
.kicktick-submit-btn {
    width: 100%;
    padding: 16px 20px;
    background: #1C71EF !important;
    background-color: #1C71EF !important;
    color: white !important;
    border: none;
    border-radius: 60px !important;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
   
    /* Rectangle 4 */




background: #1C71EF;
box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
border-radius: 66px;


    margin-bottom: 15px;
}

.kicktick-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.kicktick-submit-btn:active {
    transform: translateY(0);
}

.kicktick-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Form Switch */
.kicktick-form-switch {
    text-align: center;
    font-size: 14px;
    color: #666;
}

.kicktick-form-switch a {
    color: #4285f4;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.kicktick-form-switch a:hover {
    color: #1a73e8;
    text-decoration: underline;
}

/* Loading Spinner */
.kicktick-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
}

.kicktick-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4285f4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Messages */
.kicktick-messages {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 20;
}

.kicktick-messages.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.kicktick-messages.success {
    background: #e8f5e8;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

/* Login Trigger Button */
.kicktick-login-trigger {
    font-family: 'Inter' !important;
    font-style: normal !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    line-height: 20px !important;
    text-align: center !important;
    color: #2A2A2A !important;
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    cursor: pointer !important;
}

.kicktick-login-trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.3);
}

/* Responsive Design */
@media (max-width: 480px) {
    .kicktick-modal-container {
        margin: 20px;
        max-width: none;
        border-radius: 12px;
    }
    
    .kicktick-form-container {
        padding: 32px 24px 24px;
    }
    
    .kicktick-modal-title {
        font-size: 24px;
        margin-bottom: 24px;
    }
    
    .kicktick-form-footer {
        flex-direction: inline;
        align-items: center;
       
    }
    .kicktick-form-footer  label{
        margin-bottom: 0px !important;
       
    }
    
    .kicktick-form-footer .kicktick-checkbox {
        justify-content: center;
    }
    


    .kicktick-forgot-password {
        text-align: center;
        display: block;
    }
    
    /* Stack side-by-side fields on mobile */
    .kicktick-field-row {
        flex-direction: row;
        gap: 10px;
        margin-bottom: 0px !important;
    }
    
    .kicktick-field-half {
        margin-bottom: 10px;
    }
    
    /* Google iframe mobile adjustments */
    .kicktick-google-wrapper iframe {
        height: 48px !important;
        min-height: 48px !important;
    }
}

/* Focus trap for accessibility */
.kicktick-modal-overlay:focus-within .kicktick-modal-container {
    outline: 2px solid #4285f4;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .kicktick-modal-container {
        border: 2px solid #000;
    }
    
    .kicktick-field-group input {
        border-color: #000;
    }
    
    .kicktick-google-btn {
        border-color: #000;
    }
}


/* Override Google Sign-In button styles */
.nsm7Bb-HzV7m-LgbsSe {
    border: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    height: 52px !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
}

/* More specific override for Google button container */
.kicktick-google-container .nsm7Bb-HzV7m-LgbsSe,
#kicktick-login-modal .nsm7Bb-HzV7m-LgbsSe,
.kicktick-modal-container .nsm7Bb-HzV7m-LgbsSe {
    border: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
}

/* Target all Google button elements */
.kicktick-google-wrapper .S9gUrf-YoZ4jf {
    border: none !important;
    border-radius: 0 !important;
    width: 100% !important;
    height: 100% !important;
    position: relative !important;
    overflow: hidden !important;
}

.kicktick-google-wrapper .S9gUrf-YoZ4jf > div {
    border: none !important;
    width: 100% !important;
    height: 100% !important;
}

/* Target the container with haAclf class */
.kicktick-google-wrapper .haAclf {
    padding: 0 !important;
    border: none !important;
}

/* Target the specific Google button classes */
.kicktick-google-wrapper .nsm7Bb-HzV7m-LgbsSe.hJDwNd-SxQuSe,
.kicktick-google-wrapper .nsm7Bb-HzV7m-LgbsSe.i5vt6e-Ia7Qfc,
.kicktick-google-wrapper .nsm7Bb-HzV7m-LgbsSe.uaxL4e-RbRzK {
    border: none !important;
    border-radius: 0 !important;
}

/* Remove all borders from Google button inner elements */
.kicktick-google-wrapper * {
    border: none !important;
}

/* Additional iframe content styling */


/* KickTick Login Modal Trigger Buttons */
.kicktick-login-trigger,
.kicktick-my-account-link {
    text-transform: none !important;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    outline: none;
}

/* Button Styles */
.kicktick-login-button {
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 14px;
    line-height: 1.4;
}

/* Button Sizes */
.kicktick-size-small {
    padding: 8px 16px;
    font-size: 13px;
}

.kicktick-size-medium {
    padding: 12px 24px;
    font-size: 14px;
}

.kicktick-size-large {
    padding: 16px 32px;
    font-size: 16px;
}

/* Button Colors */
.kicktick-color-blue {
    background: #4285f4;
    color: white;
}

.kicktick-color-blue:hover {
    background: #3367d6;
    color: white;
    text-decoration: none;
}

.kicktick-color-white {
    background: white;
    color: #333;

}

.kicktick-color-white:hover {
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-color: #ccc;
}

.kicktick-color-black {
    background: #333;
    color: white;
}

.kicktick-color-black:hover {
    background: #555;
    color: white;
    text-decoration: none;
}

/* Link Styles */
.kicktick-login-link {
    color: #4285f4;
    text-decoration: underline;
    background: none;
    padding: 0;
    border: none;
    font-size: inherit;
}

.kicktick-login-link:hover {
    color: #3367d6;
    text-decoration: none;
}

/* Block (Full Width) */
.kicktick-block {
    width: 100%;
    display: flex;
}

/* Icon spacing */
.kicktick-login-trigger svg,
.kicktick-my-account-link svg {
    margin-right: 8px;
    flex-shrink: 0;
}

/* Override any theme uppercase forcing */
.kicktick-login-trigger,
.kicktick-my-account-link,
.kicktick-login-button,
.kicktick-login-link {
    text-transform: none !important;
    letter-spacing: normal !important;
}

.kicktick-switch-to-register{
    text-decoration: underline !important;
}

.kicktick-switch-to-login {
    text-decoration: underline !important;
}