/* Base styles */
html,
body {
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #2F4F4F;
    background-image:
        radial-gradient(at 10% 30%, rgb(59, 130, 246, 0.15) 0px, transparent 50%),
        radial-gradient(at 90% 80%, rgb(236, 72, 153, 0.15) 0px, transparent 50%);
    background-size: 100% 100%;
    background-attachment: scroll;
    /* Changed from fixed to scroll for better mobile support */
    background-repeat: no-repeat;
}

.animated-bg {
    position: relative;
    min-height: 100vh;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ensure content can scroll on smaller screens */
@media (max-height: 800px) {
    .animated-bg {
        align-items: flex-start;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}

.logo-image {
    width: 64px;
    height: 64px;
    object-fit: contain;
    flex-shrink: 0;
}

.logo-text-main {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    font-weight: 600;
    color: #6B8E23;
    line-height: 1;
}

.logo-text-sub {
    font-size: 1.125rem;
    font-weight: 500;
    color: #6b7280;
    margin-left: 0.25rem;
    align-self: flex-end;
    line-height: 1;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Remove any hover or scroll effects */
.logo-image,
.logo-container,
.logo-icon {
    transition: none;
}

.logo-image:hover,
.logo-container:hover,
.logo-icon:hover {
    transform: none;
    animation: none;
}

/* Login button gradient */
.login-btn {
    background: linear-gradient(to right, #6B8E23, #9ACD32);
    box-shadow: 0 4px 6px -1px rgba(220, 38, 38, 0.2), 0 2px 4px -1px rgba(220, 38, 38, 0.1);
}

.login-btn:hover {
    background: linear-gradient(to right, #9ACD32, #991b1b);
    box-shadow: 0 10px 15px -3px rgba(220, 38, 38, 0.2), 0 4px 6px -2px rgba(220, 38, 38, 0.1);
}

.login-btn:active {
    transform: translateY(1px);
}


/* Animations */
.fade-in {
    animation: fadeIn 0.6s ease-in-out forwards;
    opacity: 0;
}

.fade-in-delay-1 {
    animation-delay: 0.2s;
}

.fade-in-delay-2 {
    animation-delay: 0.4s;
}

.fade-in-delay-3 {
    animation-delay: 0.6s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* Notification animations */
.notification {
    transition: all 0.3s ease-in-out;
    transform: translateX(120%);
}

.notification.show {
    transform: translateX(0);
}

.notification.hide {
    transform: translateX(120%);
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 100;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
    /* Enable scrolling in modals */
    padding: 1rem;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 1.5rem;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    margin: auto;
}

.modal.show .modal-content {
    transform: scale(1);
}

/* Custom checkbox styling */
input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 1rem;
    height: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.25rem;
    background-color: #fff;
    cursor: pointer;
    position: relative;
}

input[type="checkbox"]:checked {
    background-color: #6495ED;
    /* Red color */
    border-color: #6495ED;
}

input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}


/* Ensure main container can scroll */
.main-container {
    width: 100%;
    max-width: 28rem;
    margin: 0 auto;
}

/*help */

.faq-item {
    border-bottom: 1px solid #e5e7eb;
}

.faq-question {
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background-color: #f9fafb;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer.open {
    max-height: 500px;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-icon.rotate {
    transform: rotate(180deg);
}

/*forgot password */
/* Submit button gradient */
.submit-btn {
    background: linear-gradient(to right, #6B8E23, #9ACD32);
    box-shadow: 0 4px 6px -1px rgba(220, 38, 38, 0.2), 0 2px 4px -1px rgba(220, 38, 38, 0.1);
}

.submit-btn:hover {
    background: linear-gradient(to right, #9ACD32, #991b1b);
    box-shadow: 0 10px 15px -3px rgba(220, 38, 38, 0.2), 0 4px 6px -2px rgba(220, 38, 38, 0.1);
}

.submit-btn:active {
    transform: translateY(1px);
}