/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #00000080;
    z-index: 1001;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--modal-background);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px #00000033;
    position: relative;
    width: 100%;
    max-width: 460px;
    color: var(--modal-text);
}

.login-box {
    position: relative;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.logo {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.login-header h2 {
    margin: 0;
    color: var(--modal-text);
    font-size: 1.3rem;
}

.login-header p {
    margin: 0.5rem 0 0;
    color: var(--hover-color);
    font-size: 0.85rem;
}

.form-group {
    margin-bottom: 0.3rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.3rem;
    color: var(--modal-text);
    font-size: 0.8rem;
}

.form-group input {
    width: 100%;
    padding: 0.25rem 0.5rem;
    border: 1px solid var(--input-border);
    border-radius: 4px;
    background: var(--body-background);
    color: var(--modal-text);
    font-size: 0.9rem;
    transition: all 0.3s;
    height: 40px;
}

.form-group input:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 2px #1A73E833;
}

.error-message {
    color: #dc3545;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: block;
    min-height: 1.25em;
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--modal-text);
    font-size: 0.8rem;
}

.forgot-password {
    color: #1a73e8;
    text-decoration: none;
    font-size: 0.8rem;
}

.forgot-password:hover {
    text-decoration: underline;
}

.submit-button {
    width: 100%;
    padding: 0.75rem;
    background: #1a73e8;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-button:hover {
    background: #1557b0;
    transform: translateY(-1px);
}

.signup-link {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--modal-text);
    font-size: 0.8rem;
}

.signup-link a {
    color: #1a73e8;
    text-decoration: none;
    font-weight: 500;
}

.signup-link a:hover {
    text-decoration: underline;
}

.close-button {
    position: absolute;
    top: -1rem;
    right: -1rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: none;
    background: var(--modal-text);
    color: var(--modal-background);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.close-button:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .modal-content {
        margin: 1rem;
        padding: 1.5rem;
    }
}
