/* Modal overlay */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Modal box */
.modal-content {
    width: 100%;
    max-width: 400px;
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.2s ease-in-out;
}

/* Header */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
}

.modal-header.centered h3 {
    flex: 1;
    text-align: center;
}

/* Checkbox + forgot password row */
.checkbox-forgot-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.checkbox-forgot-row .link {
    margin: 0;
    font-size: 13px;
}

/* Close button */
.close {
    font-size: 22px;
    cursor: pointer;
    color: #666;
}

.close:hover {
    color: #000;
}

/* Inputs */
.modal-content input {
    width: 100%;
    padding: 10px 12px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
}

.modal-content input:focus {
    outline: none;
    border-color: #007bff;
}

/* Button */
.primary-btn {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
}

.primary-btn:hover {
    background-color: #0056b3;
}

/* Google button */
.google-btn {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: white;
    font-size: 15px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.google-btn .google-icon {
    flex-shrink: 0;
}

.google-btn:hover {
    background: #f5f5f5;
}

/* Divider */
.divider {
    text-align: center;
    margin: 16px 0;
    font-size: 12px;
    color: #888;
}

/* Links */
.link {
    margin-top: 12px;
    font-size: 13px;
    color: #007bff;
    text-align: center;
    cursor: pointer;
}

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

/* Show password checkbox */
.checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.checkbox-row input[type="checkbox"] {
    margin: 0;
    width: auto;
}

.checkbox-row label {
    font-size: 13px;
    cursor: pointer;
}

/* Error message */
.error-message {
    color: #dc3545;
    font-size: 13px;
    margin-top: 8px;
    text-align: center;
}

/* Success message */
.success-message {
    color: #28a745;
    font-size: 13px;
    margin-top: 8px;
    text-align: center;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
