.savvy-favorite-heart {
    transition: color 0.3s ease;
}

.savvy-favorite-heart:hover {
    transform: scale(1.2);
}

.tooltip {
    font-size: 0.9rem;
    background-color: #333;
    color: #fff;
    border-radius: 4px;
    padding: 5px 10px;
    opacity: 0.9;
}
.modal.fade.show{
    opacity: 1 !important;
}

/* Add this to your CSS file */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-left: 10px;
}




.modal-content{
margin-top:250px;

}

#newsletter, #remember:not(.savvy-checkbox) {
   appearance: auto !important;
}


#savvymember-btn{
    width: 100%;
    background-color: #6c63ff; /* Similar to the button in image */
    color: white;
    font-size: 16px;
    font-weight: bold;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease-in-out;
}


.custom-alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
    position: relative;
    background-color: #f2dede; /* Default alert background color */
    color: #a94442; /* Default alert text color */
}

.custom-alert-danger {
    background-color: #f2dede;
    color: #a94442;
    border-color: #ebccd1;
}

.custom-alert-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    cursor: pointer;
}


.read-more-btn {
    background-color: #665EFF; /* Adjust to match the exact shade */
    color: white;
    border: none;
    padding: 10px 18px;
    font-size: 14px;
    
    border-radius: 50px; /* Ensures rounded edges */
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
}

.read-more-btn:hover {
    background-color: #564EDD; /* Slightly darker on hover */
    text-decoration: underline;
color:white;
}


.savvy-user-icon a {
    display: flex;
    align-items: center;
    font-size: 24px;
}

.savvy-user-icon a::before {
    font-family: 'Font Awesome 5 Free';
    content: '\f007'; /* Unicode for user icon */
    font-weight: 900;
    margin-right: 5px;
}


/* registration css */



    /* Modal Styling */
    .savvy-registration-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        visibility: hidden;
        opacity: 0;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 9999;
        padding: 20px;
        box-sizing: border-box;
    }

    .savvy-registration-modal.show {
        visibility: visible;
        opacity: 1;
    }

    .savvy-modal-backdrop {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    .savvy-modal-container {
        position: relative;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-radius: 24px;
        padding: 0;
        width: 90%;
        max-width: 500px;
        max-height: calc(100vh - 200px);
        overflow: hidden;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
        transform: scale(0.9) translateY(20px);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        flex-direction: column;
    }

    .savvy-registration-modal.show .savvy-modal-container {
        transform: scale(1) translateY(0);
    }

    .savvy-modal-header {
        background: rgba(255, 255, 255, 0.95);
        padding: 32px 32px 24px;
        text-align: center;
        position: relative;
        flex-shrink: 0;
        z-index: 2;
    }

    .savvy-modal-logo {
        width: 60px;
        height: 60px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 16px;
        box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
    }

    .savvy-modal-logo i {
        font-size: 24px;
        color: white;
    }

    .savvy-modal-title {
        font-size: 28px;
        font-weight: 700;
        color: #1a202c;
        margin: 0 0 8px;
        line-height: 1.2;
    }

    .savvy-modal-subtitle {
        font-size: 16px;
        color: #718096;
        margin: 0;
        line-height: 1.5;
    }

    .savvy-modal-close {
        position: absolute;
        top: 10px;
        right: 10px;
        width: 32px;
        height: 32px;
        background: rgba(255, 255, 255, 0.9);
        border: none;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.2s ease;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        z-index: 10;
    }

    .savvy-modal-close:hover {
        background: #f7fafc;
        transform: scale(1.1);
    }

    .savvy-modal-close i {
        font-size: 16px;
        color: #718096;
    }

    .savvy-modal-body {
        background: white;
        padding: 32px;
        overflow-y: auto;
        max-height: calc(90vh - 120px); /* Adjust 120px if your header/footer is taller/shorter */
        flex: 1 1 auto;
    }

    .savvy-registration-form {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .savvy-form-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .savvy-form-group {
        display: flex;
        flex-direction: column;
        position: relative;
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }

    .savvy-form-label {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 14px;
        font-weight: 600;
        color: #4a5568;
        margin-bottom: 8px;
    }

    .savvy-form-label i {
        color: #667eea;
        font-size: 16px;
    }

    .savvy-form-input {
        padding: 16px 20px;
        border: 2px solid #e2e8f0;
        border-radius: 12px;
        font-size: 16px;
        transition: all 0.2s ease;
        background: #f7fafc;
        color: #1a202c;
    }

    .savvy-form-input:focus {
        outline: none;
        border-color: #667eea;
        background: white;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }

    .savvy-form-input::placeholder {
        color: #a0aec0;
    }

    .savvy-password-input {
        position: relative;
        display: flex;
        align-items: center;
    }

    .savvy-password-toggle {
        position: absolute;
        right: 16px;
        background: none;
        border: none;
        color: #a0aec0;
        cursor: pointer;
        padding: 4px;
        transition: color 0.2s ease;
    }

    .savvy-password-toggle:hover {
        color: #667eea;
    }

    .savvy-checkbox-group {
        margin-top: 8px;
    }

    .savvy-checkbox-label {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        cursor: pointer;
        position: relative;
    }

    .savvy-checkbox {
        position: absolute;
        opacity: 0;
        cursor: pointer;
        height: 0;
        width: 0;
    }

    .savvy-checkmark {
        width: 20px;
        height: 20px;
        background: #f7fafc;
        border: 2px solid #e2e8f0;
        border-radius: 6px;
        flex-shrink: 0;
        margin-top: 2px;
        transition: all 0.2s ease;
        position: relative;
    }

    .savvy-checkbox:checked + .savvy-checkmark {
        background: #667eea;
        border-color: #667eea;
    }

    .savvy-checkbox:checked + .savvy-checkmark::after {
        content: '\f00c';
        font-family: 'Font Awesome 5 Free';
        font-weight: 900;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: white;
        font-size: 12px;
    }

    .savvy-checkbox-text {
        font-size: 14px;
        color: #4a5568;
        line-height: 1.5;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .savvy-checkbox-text i {
        color: #667eea;
        font-size: 14px;
    }

    .savvy-submit-btn {
        width: 100%;
        padding: 16px 24px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border: none;
        border-radius: 12px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    }

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

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

    .savvy-submit-btn:disabled {
        opacity: 0.7;
        cursor: not-allowed;
        transform: none;
    }

    .savvy-spinner {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .savvy-spinner i {
        font-size: 16px;
    }

    .savvy-response {
        margin-top: 16px;
    }

    .savvy-form-footer {
        text-align: center;
        margin-top: 24px;
        padding-top: 24px;
        border-top: 1px solid #e2e8f0;
    }

    .savvy-login-link {
        font-size: 14px;
        color: #718096;
        margin: 0;
    }

    .savvy-link {
        color: #667eea;
        text-decoration: none;
        font-weight: 600;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        transition: color 0.2s ease;
    }

    .savvy-link:hover {
        color: #5a67d8;
        text-decoration: underline;
    }

    /* Success and Error Messages */
    .savvy-response .custom-alert {
        padding: 16px 20px;
        border-radius: 12px;
        font-size: 14px;
        font-weight: 500;
        border: none;
        margin: 0;
    }

    .savvy-response .custom-alert.success {
        background: #f0fff4;
        color: #22543d;
        border-left: 4px solid #48bb78;
    }

    .savvy-response .custom-alert.error {
        background: #fff5f5;
        color: #c53030;
        border-left: 4px solid #f56565;
    }

    /* Responsive Design */
    @media (max-width: 768px) {
        .savvy-modal-container {
            width: 95%;
            max-height: calc(100vh - 180px);
            margin: 20px;
        }
        
        .savvy-modal-header {
            padding: 24px 24px 20px;
        }
        
        .savvy-modal-body {
            padding: 24px;
            max-height: calc(100vh - 220px);
        }
        
        .savvy-modal-title {
            font-size: 24px;
        }
        
        .savvy-form-row {
            grid-template-columns: 1fr;
            gap: 20px;
        }
        
        .savvy-form-input {
            padding: 14px 16px;
            font-size: 16px; /* Prevents zoom on iOS */
        }
    }

    @media (max-width: 480px) {
        .savvy-modal-container {
            width: 100%;
            max-height: calc(100vh - 160px);
            border-radius: 16px;
            margin: 10px;
        }
        
        .savvy-modal-header {
            padding: 24px 20px 20px;
            background: rgba(255, 255, 255, 0.98);
        }
        
        .savvy-modal-logo {
            width: 50px;
            height: 50px;
            margin: 0 auto 12px;
        }
        
        .savvy-modal-logo i {
            font-size: 20px;
        }
        
        .savvy-modal-title {
            font-size: 20px;
            font-weight: 700;
            margin: 0 0 6px;
            line-height: 1.3;
        }
        
        .savvy-modal-subtitle {
            font-size: 13px;
            line-height: 1.4;
            margin: 0;
            color: #64748b;
        }
        
        .savvy-modal-close {
            width: 28px;
            height: 28px;
            top: 8px;
            right: 8px;
        }
        
        .savvy-modal-close i {
            font-size: 14px;
        }
        
        .savvy-modal-body {
            padding: 20px;
            max-height: calc(100vh - 200px);
        }
    }

    /* Animation for form elements */
    .savvy-form-group {
        animation: fadeInUp 0.6s ease forwards;
        opacity: 0;
        transform: translateY(20px);
    }

    .savvy-form-group:nth-child(1) { animation-delay: 0.1s; }
    .savvy-form-group:nth-child(2) { animation-delay: 0.2s; }
    .savvy-form-group:nth-child(3) { animation-delay: 0.3s; }
    .savvy-form-group:nth-child(4) { animation-delay: 0.4s; }
    .savvy-form-group:nth-child(5) { animation-delay: 0.5s; }
    .savvy-form-group:nth-child(6) { animation-delay: 0.6s; }

    @keyframes fadeInUp {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Password toggle functionality */
    .savvy-password-input input[type="text"] + .savvy-password-toggle i::before {
        content: "\f070"; /* fa-eye-slash */
    }

    /* Loading state */
    .savvy-submit-btn.loading {
        pointer-events: none;
    }

    .savvy-submit-btn.loading #btn-text {
        opacity: 0;
    }

    .savvy-submit-btn.loading #spinner {
        display: flex !important;
    }


    /* login css - removed old styles, using new modern styling */

/* premimum style */
.savvy-container1 {
           
    padding: 20px;
}
.savvy-title {
    font-size: 24px;
    font-weight: bold;
}
.savvy-subtitle {
    font-size: 16px;
    margin-bottom: 20px;
}
.savvy-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: flex-start;
    align-items: stretch;
}
.savvy-card {
    box-sizing: border-box;
    width: 100%;
    max-width: 320px;
    flex: 1 1 320px;
    min-width: 250px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: visible;
    transition: transform 0.3s;
}
.savvy-card:hover {
    transform: translateY(-5px);
}
.savvy-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.savvy-card-body {
    padding: 15px;
    text-align: left;
    overflow: visible;
}
.savvy-card-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.savvy-card-title-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.savvy-card-title-link:hover {
    color: #665EFF;
    text-decoration: none;
}
.savvy-card-text {
    font-size: 14px;
    color: #666;
}
.savvy-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-top: 1px solid #ddd;
    position: relative;
    overflow: visible;
}
.savvy-button {
    background-color: #665EFF;
    color: white;
    border-radius: 50px;
    padding: 8px 16px;
    text-decoration: none;
    font-size: 14px;
    display: inline-block;
    transition: background 0.3s;
}
.savvy-button:hover {
    background-color: #564DED;
    color: white;
}

.savvy-button:visited {
    color: white;
}

.savvy-button:visited:hover {
    color: white;
}
.savvy-alert {
    background: #ffdddd;
    color: #d8000c;
    padding: 10px;
    border-radius: 5px;
    margin: 10px 0;
}
@media (max-width: 768px) {
    .savvy-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .savvy-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* favourite style */


.custom-container {
    padding: 20px;
}
.custom-text-center {
    text-align: center;
}
.custom-margin-top {
    margin-top: 20px;
}
.custom-text-muted {
    color: #6c757d;
}
.custom-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    justify-content: center;
    padding: 10px;
}
.custom-grid-item {
    display: flex;
    justify-content: center;
}
.custom-card {
    width: 100%;
    max-width: 350px;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: 0.3s;
}
.custom-card:hover {
    transform: scale(1.03);
}
.custom-card-img {
    width: 100%;
    height: auto;
    object-fit: cover;
}
.custom-card-body {
    padding: 15px;
}
.custom-card-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
}
.custom-card-link {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}
.custom-card-text {
    font-size: 1rem;
    color: #555;
}
.custom-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-top: 1px solid #ddd;
}
.custom-read-more {
    background-color: #665EFF;
    color: white;
    border-radius: 50px;
    padding: 8px 16px;
    text-decoration: none;
    font-size: 14px;
    display: inline-block;
    transition: background 0.3s;
}

.custom-read-more:hover {
    background-color: #564DED;
}

.custom-read-more:visited {
    color: white;
}

.custom-read-more:visited:hover {
    color: white;
}
.custom-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.custom-favorite-heart {
    cursor: pointer;
    font-size: 1.5rem;
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}

/* Loading animation for custom favorite hearts */
.custom-favorite-heart.loading {
    pointer-events: none;
    opacity: 0.7;
}

.custom-favorite-heart.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid #ff6b6b;
    border-radius: 50%;
    animation: savvy-heart-spin 1s linear infinite;
    z-index: 10001;
}

/* Hide the heart emoji during loading */
.custom-favorite-heart.loading {
    color: transparent !important;
}

/* Ensure reminder button in favorites section matches the design */
.custom-actions .savvy-reminder-container {
    display: inline-flex;
    align-items: center;
}

.custom-actions .savvy-set-reminder {
    font-size: 1.5rem;
    margin-left: 10px;
    background: none;
    border: none;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    min-height: 30px;
}

.custom-actions .savvy-set-reminder:hover {
    background-color: rgba(0, 0, 0, 0.1);
    transform: scale(1.1);
}

.custom-actions .savvy-set-reminder:active {
    transform: scale(0.95);
}


@media (max-width: 768px) {
    .custom-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .custom-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* reminder css */

.savvy-reminder-container {
    display: inline-block;
    position: relative;
}

.savvy-set-reminder {
    cursor: pointer;
    font-size: 25px;
    margin-left: 10px;
    background: none;
    border: none;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 35px;
    min-height: 35px;
}

.savvy-set-reminder:hover {
    background-color: rgba(0, 0, 0, 0.1);
    transform: scale(1.1);
}

.savvy-set-reminder:active {
    transform: scale(0.95);
}

.savvy-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

/* .savvy-modal.show {
    display: block !important;
} */

.savvy-modal-dialog {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    max-width: 500px;
    margin: 100px auto;
    position: relative;
}

.savvy-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.savvy-modal-title {
    font-size: 18px;
    font-weight: bold;
}

.savvy-close {
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
}

.savvy-modal-body {
    margin-top: 15px;
}

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

.savvy-form-label {
    display: block;
    margin-bottom: 5px;
}

.savvy-form-input {
    width: 100%;
    padding: 8px;
    font-size: 16px;
}

.savvy-submit-btn {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.savvy-submit-btn:hover {
    background-color: #0056b3;
}

/* favourite heart */

.savvy-favorite-heart {
    cursor: pointer;
    font-size: 35px;
    position: relative;
    display: inline-block;
    transition: color 0.3s ease;
    overflow: visible;
}

/* Colors for favorited and not-favorited states */
.savvy-favorite-heart.favorited {
    color: red;
}

.savvy-favorite-heart.not-favorited {
    color: gray;
}

/* Tooltip styling */
.savvy-favorite-heart::after {
    content: attr(data-tooltip);
    position: absolute;
    background-color: black;
    color: white;
    padding: 5px 8px;
    border-radius: 4px;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 12px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 9999;
}

/* Additional tooltip positioning improvements */

/* Additional tooltip positioning improvements */
.savvy-favorite-heart:hover::after {
    opacity: 1;
    /* Ensure tooltip appears above other elements */
    z-index: 10000;
}

/* Loading animation for favorite hearts */
.savvy-favorite-heart.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.savvy-favorite-heart.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid #ff6b6b;
    border-radius: 50%;
    animation: savvy-heart-spin 1s linear infinite;
    z-index: 10001;
}

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

/* Hide the heart emoji during loading */
.savvy-favorite-heart.loading {
    color: transparent !important;
}

/* newslater subscriber */

.savvy-container {
    max-width: 500px;
    margin: 30px auto;
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    font-family: Arial, sans-serif;
}

.savvy-container h3 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}

.savvy-container input[type="email"] {
    width: 100%;
    padding: 10px 15px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.savvy-container button {
    background-color: #007bff;
    color: white;
    padding: 10px 25px;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.savvy-container button:hover {
    background-color: #0056b3;
}

.custom-alert {
    margin-top: 20px;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 15px;
}

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

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

.subscribe_to_newsletter {
	display: inline-block;
	padding-top: 10px;
	padding-bottom: 10px;
}

.subscribe_to_newsletter label {
	display: inline-block;
}

.login-link {
	color: #fff;
}

.login-link:visited {
	color: #fff;
}

/* Form validation states */
.savvy-form-group.is-valid .savvy-form-input {
    border-color: #48bb78;
    background: #f0fff4;
}

.savvy-form-group.is-valid .savvy-form-label {
    color: #22543d;
}

.savvy-form-group.is-invalid .savvy-form-input {
    border-color: #f56565;
    background: #fff5f5;
}

.savvy-form-group.is-invalid .savvy-form-label {
    color: #c53030;
}

.savvy-form-group.is-invalid::after {
    content: '⚠';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #f56565;
    font-size: 16px;
}

.savvy-form-group.is-valid::after {
    content: '✓';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #48bb78;
    font-size: 16px;
}

/* Enhanced focus states */
.savvy-form-input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

/* Smooth transitions for all interactive elements */
.savvy-form-input,
.savvy-submit-btn,
.savvy-modal-close,
.savvy-password-toggle,
.savvy-checkbox-label {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover effects for form inputs */
.savvy-form-input:hover {
    border-color: #cbd5e0;
    background: #edf2f7;
}

/* Enhanced button states */
.savvy-submit-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

.savvy-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Loading animation enhancement */
.savvy-spinner i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Modal entrance animation enhancement */
.savvy-registration-modal.show .savvy-modal-container {
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Backdrop animation */
.savvy-registration-modal.show .savvy-modal-backdrop {
    animation: backdropFadeIn 0.3s ease;
}

@keyframes backdropFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(8px);
    }
}

/* Enhanced checkbox styling */
.savvy-checkbox-label:hover .savvy-checkmark {
    border-color: #667eea;
}

.savvy-checkbox:checked + .savvy-checkmark {
    background: #667eea;
    border-color: #667eea;
}

.savvy-checkbox:checked + .savvy-checkmark::after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
}

/* Enhanced checkbox hover state */
.savvy-checkbox-label:hover .savvy-checkbox:checked + .savvy-checkmark {
    background: #667eea;
    border-color: #667eea;
}

.savvy-checkbox-label:hover .savvy-checkbox:checked + .savvy-checkmark::after {
    color: white;
}

/* Password toggle button enhancement */
.savvy-password-toggle:focus {
    outline: none;
    color: #667eea;
}

.savvy-password-toggle:active {
    transform: scale(0.95);
}

/* Form group positioning for validation icons */
.savvy-form-group {
    position: relative;
}

/* Responsive improvements */
@media (max-width: 480px) {
    .savvy-form-group.is-valid::after,
    .savvy-form-group.is-invalid::after {
        right: 8px;
        font-size: 14px;
    }
    
    .savvy-password-toggle {
        right: 12px;
    }
}

/* Accessibility improvements */
.savvy-form-input:focus,
.savvy-submit-btn:focus,
.savvy-modal-close:focus,
.savvy-password-toggle:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .savvy-form-input {
        border-width: 3px;
    }
    
    .savvy-submit-btn {
        border: 2px solid #667eea;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .savvy-registration-modal,
    .savvy-modal-container,
    .savvy-form-input,
    .savvy-submit-btn,
    .savvy-modal-close,
    .savvy-password-toggle,
    .savvy-checkbox-label,
    .savvy-form-group {
        transition: none;
        animation: none;
    }
}

/* Login Form Styling */
.savvy-login-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.savvy-login-modal {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.savvy-login-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 24px;
}

.savvy-login-modal-container {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 24px;
    padding: 0;
    width: 100%;
    max-height: calc(100vh - 200px);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
}

.savvy-login-header {
    background: rgba(255, 255, 255, 0.95);
    padding: 32px 32px 24px;
    text-align: center;
    position: relative;
    flex-shrink: 0;
    z-index: 2;
}

.savvy-login-logo {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.savvy-login-logo i {
    font-size: 24px;
    color: white;
}

.savvy-login-title {
    font-size: 28px;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 8px;
    line-height: 1.2;
}

.savvy-login-subtitle {
    font-size: 16px;
    color: #718096;
    margin: 0;
    line-height: 1.5;
}

.savvy-login-body {
    background: white;
    padding: 32px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.savvy-login-form {
    width: 100%;
}

.savvy-forgot-password {
    text-align: center;
    margin-bottom: 20px;
}

.savvy-forgot-password .savvy-link {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.savvy-forgot-password .savvy-link:hover {
    color: #764ba2;
}

.savvy-register-link {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.savvy-register-link .savvy-login-link {
    margin: 0;
    font-size: 14px;
    color: #718096;
}

.savvy-register-link .savvy-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.savvy-register-link .savvy-link:hover {
    color: #764ba2;
}

/* Responsive Design for Login */
@media (max-width: 768px) {
    .savvy-login-container {
        padding: 10px;
    }
    
    .savvy-login-modal-container {
        max-width: 100%;
    }
    
    .savvy-login-header {
        padding: 24px 24px 20px;
    }
    
    .savvy-login-body {
        padding: 24px;
    }
    
    .savvy-login-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .savvy-login-container {
        padding: 5px;
    }
    
    .savvy-login-modal-container {
        border-radius: 16px;
    }
    
    .savvy-login-header {
        padding: 20px 20px 16px;
    }
    
    .savvy-login-logo {
        width: 50px;
        height: 50px;
        margin-bottom: 12px;
    }
    
    .savvy-login-logo i {
        font-size: 20px;
    }
    
    .savvy-login-title {
        font-size: 22px;
    }
    
    .savvy-login-subtitle {
        font-size: 14px;
    }
    
    .savvy-login-body {
        padding: 20px;
    }
}

/* Ensure checkbox styling works in login form */
.savvy-login-form .savvy-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
    appearance: none !important;
}

.savvy-login-form .savvy-checkmark {
    width: 20px;
    height: 20px;
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all 0.2s ease;
    position: relative;
}

.savvy-login-form .savvy-checkbox:checked + .savvy-checkmark,
.savvy-login-form .savvy-checkmark.checked {
    background: #667eea;
    border-color: #667eea;
}

.savvy-login-form .savvy-checkbox:checked + .savvy-checkmark::after,
.savvy-login-form .savvy-checkmark.checked::after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
}

/* Additional specificity for login form checkbox */
.savvy-login-form .savvy-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    position: relative;
}

.savvy-login-form .savvy-checkbox-label:hover .savvy-checkmark {
    border-color: #667eea;
}

/* Override any conflicting styles */
#remember.savvy-checkbox {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    position: absolute !important;
    opacity: 0 !important;
    cursor: pointer !important;
    height: 0 !important;
    width: 0 !important;
}

/* Add support for .checked class for JavaScript toggle */
.savvy-checkmark.checked {
    background: #667eea;
    border-color: #667eea;
}

.savvy-checkmark.checked::after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
}

/* Login links styling for premium content access */
.savvy-login-links {
    margin-top: 15px;
    text-align: center;
}

.savvy-login-links p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.savvy-login-links .savvy-link {
    color: #6c63ff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.savvy-login-links .savvy-link:hover {
    color: #564EDD;
    text-decoration: underline;
}

.savvy-login-links .savvy-register-link {
    cursor: pointer;
}