
.modal-overlay {
    display: none;
    /* stays hidden until JS opens it */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    align-items: center;
    /* moved here */
    justify-content: center;
    /* moved here */
    backdrop-filter: blur(3px);
    z-index: 9999;
}
.login-close-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
}

.login-close-btn:hover {
    color: #000;
}
/* Modal box */
.modal-box {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    width: 330px;
    animation: fadeIn 0.3s ease;
    text-align: center; position: relative;
}

.modal-box input {
    width: 95%;
    margin: 10px 0;
    padding: 10px;
    font-size: 15px;
    border: 1px solid #bbb;
    border-radius: 6px;
}

.modal-btn {
    padding: 10px 20px;
    width: 100%;
    border: none;
    background: #4285f4;
    color: white;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
}

.modal-btn:hover {
    background: #3367d6;
}

.modal-small {
    margin-top: 12px;
    font-size: 13px;
    color: #555;
}

.modal-small a {
    color: #4285f4;
    cursor: pointer;
}

.logout-btn {
    background: #d9534f;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
}

.logout-btn:hover {
    background: #c9302c;
}

input {
    display: block;
    width: 90%;
    margin-bottom: 5px;
    padding: 8px;
    border: 2px solid #ccc;
    border-radius: 5px;
    transition: border-color 0.3s;
}

input.valid {
    border-color: green;
}

input.invalid {
    border-color: red;
}

small {
    display: block;
    margin-bottom: 5px;
    height: 18px;
    font-size: 12px;
}

button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

button {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
}

button:hover:enabled {
    background: #0056b3;
}

.liked {
    background-color: #ffcccc !important;
    color: #d40000 !important;
    border: 1px solid #d40000 !important;
}

