/* Modal Styles - Volunteer Login */

/* Modal overlay and base styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--wp--custom--z-index--modal, 10000);
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--wp--custom--spacing--xl, 3rem);
    box-sizing: border-box;
}

.modal[aria-hidden="false"] {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

/* Modal content container */
.modal-content {
    position: relative;
    max-width: 30rem;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    background-color: var(--wp--preset--color--neutral-white);
    border: 1px solid var(--wp--preset--color--neutral-darkest);
    border-radius: var(--wp--custom--borders--radius--xl, 2rem);
    padding: var(--wp--custom--spacing--xl, 3rem);
    box-shadow: var(--wp--custom--effects--shadows--lg, 0 0.625rem 0.938rem rgba(0, 0, 0, 0.1));
    z-index: 1;
}

/* Modal header with close button */
.modal-header {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 2;
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--wp--preset--color--neutral-darkest);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: var(--wp--custom--effects--transitions--fast, 0.15s ease);
}

.modal-close:hover,
.modal-close:focus {
    background-color: var(--wp--preset--color--neutral-lightest);
    color: var(--wp--preset--color--neutral-darkest);
    outline: 2px solid var(--wp--preset--color--cerise-red);
    outline-offset: 2px;
}

/* Form title section */
.form-section-title {
    text-align: center;
    margin-bottom: var(--wp--custom--spacing--md, 1.5rem);
}

.form-section-title h2 {
    font-family: var(--wp--preset--font-family--source-sans-3);
    font-size: var(--wp--preset--font-size--heading-2);
    font-weight: 400;
    line-height: 1.2;
    color: var(--wp--preset--color--neutral-darkest);
    margin: 0 0 var(--wp--custom--spacing--md, 1.5rem) 0;
    letter-spacing: -0.48px;
}

.form-description {
    font-family: var(--wp--preset--font-family--poppins);
    font-size: var(--wp--preset--font-size--medium);
    font-weight: 400;
    line-height: 1.5;
    color: var(--wp--preset--color--neutral-darkest);
    margin: 0;
}

/* Form inputs section */
.form-inputs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: var(--wp--custom--spacing--md, 1.5rem);
}

/* Input fields */
.input-field {
    position: relative;
}

.input-field input {
    width: 100%;
    padding: 0.5rem 0;
    font-family: var(--wp--preset--font-family--poppins);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--wp--preset--color--neutral-darkest);
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(1, 3, 5, 0.15);
    outline: none;
    transition: var(--wp--custom--effects--transitions--fast, 0.15s ease);
    box-sizing: border-box;
}

.input-field input::placeholder {
    color: rgba(1, 3, 5, 0.6);
}

.input-field input:focus {
    border-bottom-color: var(--wp--preset--color--cerise-red);
}

/* Primary login button */
.btn.btn-primary {
    width: 100%;
    height: 3rem;
    background-color: var(--wp--preset--color--cerise-red);
    color: var(--wp--preset--color--neutral-white);
    border: none;
    border-radius: var(--wp--custom--borders--radius--sm, 0.75rem);
    font-family: var(--wp--preset--font-family--poppins);
    font-size: var(--wp--preset--font-size--medium);
    font-weight: 500;
    line-height: 1.5;
    cursor: pointer;
    transition: var(--wp--custom--effects--transitions--fast, 0.15s ease);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 0.9375rem;
}

.btn.btn-primary:hover,
.btn.btn-primary:focus {
    background-color: var(--wp--preset--color--cerise-red-dark);
    outline: 2px solid var(--wp--preset--color--cerise-red);
    outline-offset: 2px;
}

/* Separator */
.separator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: var(--wp--custom--spacing--md, 1.5rem) 0 1rem 0;
}

.separator img {
    width: 100%;
    height: auto;
    max-width: 24rem;
}

/* Social login buttons */
.btn.btn-social {
    width: 100%;
    height: 3rem;
    background-color: transparent;
    color: var(--wp--preset--color--neutral-darkest);
    border: 1px solid rgba(1, 3, 5, 0.15);
    border-radius: var(--wp--custom--borders--radius--sm, 0.75rem);
    font-family: var(--wp--preset--font-family--poppins);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
    cursor: pointer;
    transition: var(--wp--custom--effects--transitions--fast, 0.15s ease);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.375rem 0.75rem;
}

.btn.btn-social:hover,
.btn.btn-social:focus {
    background-color: var(--wp--preset--color--neutral-lightest);
    border-color: var(--wp--preset--color--neutral-light);
    outline: 2px solid var(--wp--preset--color--cerise-red);
    outline-offset: 2px;
}

.btn.btn-social img {
    flex-shrink: 0;
}

/* Form links */
.form-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: var(--wp--custom--spacing--md, 1.5rem);
}

.forgot-password {
    font-family: var(--wp--preset--font-family--poppins);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--wp--preset--color--neutral-darkest);
    text-decoration: none;
    transition: var(--wp--custom--effects--transitions--fast, 0.15s ease);
}

.forgot-password:hover,
.forgot-password:focus {
    color: var(--wp--preset--color--cerise-red);
    outline: 2px solid var(--wp--preset--color--cerise-red);
    outline-offset: 2px;
}

.signup-link {
    display: flex;
    align-items: center;
    gap: 0.3125rem;
    font-family: var(--wp--preset--font-family--poppins);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--wp--preset--color--neutral-darkest);
}

.signup-link .signup {
    color: var(--wp--preset--color--neutral-darkest);
    text-decoration: none;
    transition: var(--wp--custom--effects--transitions--fast, 0.15s ease);
}

.signup-link .signup:hover,
.signup-link .signup:focus {
    color: var(--wp--preset--color--cerise-red);
    outline: 2px solid var(--wp--preset--color--cerise-red);
    outline-offset: 2px;
}

/* Responsive styles */
@media (max-width: 48rem) {
    .modal {
        padding: 1rem;
    }
    
    .modal-content {
        padding: 2rem;
        border-radius: var(--wp--custom--borders--radius--lg, 1.5rem);
    }
    
    .form-section-title h2 {
        font-size: var(--wp--preset--font-size--heading-3);
    }
    
    .separator img {
        max-width: 20rem;
    }
}

@media (max-width: 30rem) {
    .modal-content {
        padding: 1.5rem;
    }
    
    .modal-header {
        top: 1rem;
        right: 1rem;
    }
    
    .form-section-title h2 {
        font-size: var(--wp--preset--font-size--heading-4);
    }
}