.modal {
    display: none; 
    position: fixed; 
    z-index: 9999; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0, 0, 0, 0.6); 
    justify-content: center; 
    align-items: center;
    backdrop-filter: blur(2px); 
}

.login-modal-content {
    background-color: #ffffff;
    width: 90%;
    max-width: 380px;
    max-height: 90vh; 
    border-radius: 12px;
    position: relative;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalAppear 0.3s ease-out;
    display: flex;
    flex-direction: column;
    padding: 0; 
    overflow: hidden; 
}

@keyframes modalAppear {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-sticky-header {
    position: relative;
    padding: 25px 20px 10px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
    z-index: 10;
    box-shadow: 0 10px 20px 10px white;
}

.modal-form-wrapper {
    display: flex;
    flex-direction: column;
    overflow: hidden; 
    flex-grow: 1;
}

.modal-scrollable-body {
    padding: 20px 30px 10px 30px; 
    overflow-y: auto; 
    flex-grow: 1;
}

.modal-sticky-footer {
    padding: 15px 30px 30px 30px;
    background-color: #ffffff;
    z-index: 10;
    box-shadow: 0 -10px 20px 10px white;
}

.close-button {
    position: absolute; 
    right: 20px;
    top: 50%;
    transform: translateY(-50%); 
    font-size: 28px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
    background-color: white; 
    border-radius: 50%;
}

.close-button:hover {
    color: #333;
}

.logo {
    font-size: 42px; 
    font-weight: 800;
    color: #4a4a4a;
    margin: 0; 
}

h2 {
    font-size: 24px;
    margin-bottom: 8px;
    color: #333;
}

.signup-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.5;
}

.signup-text a {
    color: #0000ee;
    text-decoration: underline;
    font-weight: 700;
}

form {
    text-align: left;
}

.input-group {
    margin-bottom: 15px;
}

label {
    display: block;
    font-weight: 700;
    margin-bottom: 5px;
    font-size: 14px;
    color: #333;
}

input[type="email"],
input[type="password"],
input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #4a4a4a;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
    color: #333;
    outline-color: #4a4a4a;
    font-family: inherit;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 700;
    margin: 20px 0 30px 0;
}

.remember-me {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.forgot-password {
    color: #0000ee;
    text-decoration: none;
}

.login-btn {
    width: 100%;
    padding: 14px;
    background-color: #4a4a4a;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.login-btn:hover {
    background-color: #333;
}

@media (max-width: 768px) {
    .modal-scrollable-body {
        padding: 15px 20px 10px 20px;
    }
    
    .modal-sticky-footer {
        padding: 15px 20px 20px 20px;
    }
}